Diff
Modified: freeswitch/trunk/contrib/jmesquita/FSPhone/FSPhone.pro (16106 => 16107)
--- freeswitch/trunk/contrib/jmesquita/FSPhone/FSPhone.pro 2009-12-31 19:00:00 UTC (rev 16106)
+++ freeswitch/trunk/contrib/jmesquita/FSPhone/FSPhone.pro 2009-12-31 19:34:43 UTC (rev 16107)
@@ -1,11 +1,10 @@
# #####################################
# version check qt
# #####################################
-contains(QT_VERSION, ^4\.[0-4]\..*) {
+contains(QT_VERSION, ^4\.[0-5]\..*) {
message("Cannot build FsGui with Qt version $$QT_VERSION.")
- error("Use at least Qt 4.5.")
+ error("Use at least Qt 4.6.")
}
-
QT += xml
TARGET = fsphone
TEMPLATE = app
@@ -14,15 +13,21 @@
../../../libs/libteletone/src
LIBS = -L../../../.libs \
-lfreeswitch \
- -lm \
- -lcrypt \
- -lrt
+ -lm
-# This is here to comply with the default freeswitch installation
-QMAKE_LFLAGS += -Wl,-rpath,/usr/local/freeswitch/lib
+!win32 {
+ !macx {
+ # This is here to comply with the default freeswitch installation
+ QMAKE_LFLAGS += -Wl,-rpath,/usr/local/freeswitch/lib
+ LIBS+= -lcrypt -lrt
+ }
+}
+
SOURCES += main.cpp \
mainwindow.cpp \
fshost.cpp
+ #call.cpp
HEADERS += mainwindow.h \
fshost.h
+ #call.h
FORMS += mainwindow.ui
Added: freeswitch/trunk/contrib/jmesquita/FSPhone/call.cpp (0 => 16107)
--- freeswitch/trunk/contrib/jmesquita/FSPhone/call.cpp (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/FSPhone/call.cpp 2009-12-31 19:34:43 UTC (rev 16107)
@@ -0,0 +1,8 @@
+#include "call.h"
+
+Call::Call(int call_id, QString cid_name, QString cid_number) :
+ _call_id(call_id),
+ _cid_name(cid_name),
+ _cid_number(cid_number)
+{
+}
Added: freeswitch/trunk/contrib/jmesquita/FSPhone/call.h (0 => 16107)
--- freeswitch/trunk/contrib/jmesquita/FSPhone/call.h (rev 0)
+++ freeswitch/trunk/contrib/jmesquita/FSPhone/call.h 2009-12-31 19:34:43 UTC (rev 16107)
@@ -0,0 +1,24 @@
+#ifndef CALL_H
+#define CALL_H
+
+#include <QString>
+#include <fshost.h>
+
+typedef enum {
+ FSPHONE_CALL_DIRECTION_INBOUND = 0,
+ FSPHONE_CALL_DIRECTION_OUTBOUND = 1
+} fsphone_call_direction_t;
+
+class Call
+{
+public:
+ Call(int call_id, QString cid_name, QString cid_number);
+
+private:
+ int _call_id;
+ QString _cid_name;
+ QString _cid_number;
+ fsphone_call_direction_t _direction;
+};
+
+#endif // CALL_H