提交 2b0454a4 authored 作者: João Mesquita's avatar João Mesquita

Try to fix .pro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@16107 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 5833d252
# ##################################### # #####################################
# version check qt # version check qt
# ##################################### # #####################################
contains(QT_VERSION, ^4\.[0-4]\..*) { contains(QT_VERSION, ^4\.[0-5]\..*) {
message("Cannot build FsGui with Qt version $$QT_VERSION.") 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 QT += xml
TARGET = fsphone TARGET = fsphone
TEMPLATE = app TEMPLATE = app
...@@ -14,15 +13,21 @@ INCLUDEPATH = ../../../src/include \ ...@@ -14,15 +13,21 @@ INCLUDEPATH = ../../../src/include \
../../../libs/libteletone/src ../../../libs/libteletone/src
LIBS = -L../../../.libs \ LIBS = -L../../../.libs \
-lfreeswitch \ -lfreeswitch \
-lm \ -lm
-lcrypt \
-lrt !win32 {
!macx {
# This is here to comply with the default freeswitch installation
QMAKE_LFLAGS += -Wl,-rpath,/usr/local/freeswitch/lib
LIBS+= -lcrypt -lrt
}
}
# This is here to comply with the default freeswitch installation
QMAKE_LFLAGS += -Wl,-rpath,/usr/local/freeswitch/lib
SOURCES += main.cpp \ SOURCES += main.cpp \
mainwindow.cpp \ mainwindow.cpp \
fshost.cpp fshost.cpp
#call.cpp
HEADERS += mainwindow.h \ HEADERS += mainwindow.h \
fshost.h fshost.h
#call.h
FORMS += mainwindow.ui FORMS += mainwindow.ui
#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)
{
}
#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
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论