Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kaidan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linus Jahn
kaidan
Commits
104cf580
Commit
104cf580
authored
Oct 31, 2016
by
Georg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed pro file. Added test directory
parent
8caf22d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
app/kaidan.pro
app/kaidan.pro
+12
-10
app/source/EchoBot.cpp
app/source/EchoBot.cpp
+1
-5
No files found.
app/kaidan.pro
View file @
104cf580
# path to local compiled swift 3 lib
SWIFT3PATH
=
..
/
swift
-
3.0
SWIFT3PATH
=
..
/
../
swift
-
3.0
#
from
swift
-
config
SWIFTCXX
=
-
DSWIFTEN_STATIC
-
DBOOST_ALL_NO_LIB
-
DBOOST_SYSTEM_NO_DEPRECATED
-
DBOOST_SIGNALS_NO_DEPRECATION_WARNING
-
DSWIFT_EXPERIMENTAL_FT
SWIFTLIB
=
-
lSwiften
-
lSwiften_Boost
-
lrt
-
lz
-
lssl
-
lcrypto
-
lxml2
-
lresolv
-
lpthread
-
ldl
-
lm
-
lc
-
lstdc
++
TEMPLATE
=
app
QT
+=
qml
quick
QT
+=
qml
quick
core
INCLUDEPATH
+=
$$
{
SWIFT3PATH
}
/
3
rdParty
/
Boost
/
src
INCLUDEPATH
+=
$$
{
SWIFT3PATH
}
/
...
...
@@ -14,18 +14,20 @@ INCLUDEPATH += $${SWIFT3PATH}/
CXXFLAGS
+=
$$
{
SWIFTCXX
}
LIBS
+=
-
L
$$
{
SWIFT3PATH
}
/
Swiften
-
L
$$
{
SWIFT3PATH
}
/
3
rdParty
/
Boost
$$
{
SWIFTLIB
}
SOURCES
+=
main
.
cpp
\
EchoBot
.
cpp
DEFINES
+=
BOOST_SIGNALS_NO_DEPRECATION_WARNING
HEADERS
+=
EchoBot
.
h
\
EchoPayload
.
h
\
EchoPayloadParserFactory
.
h
\
EchoPayloadSerializer
.
h
SOURCES
+=
source
/
main
.
cpp
\
source
/
EchoBot
.
cpp
RESOURCES
+=
qml
.
qrc
HEADERS
+=
source
/
EchoBot
.
h
\
sourc
/
EchoPayload
.
h
\
source
/
EchoPayloadParserFactory
.
h
\
source
/
EchoPayloadSerializer
.
h
RESOURCES
+=
resources
/
qml
.
qrc
#
Additional
import
path
used
to
resolve
QML
modules
in
Qt
Creator
'
s
code
model
QML_IMPORT_PATH
=
#
Default
rules
for
deployment
.
include
(
deployment
.
pri
)
include
(
resources
/
deployment
.
pri
)
app/source/EchoBot.cpp
View file @
104cf580
...
...
@@ -6,15 +6,11 @@
#include "EchoPayload.h"
// FIXME rewrite all binds to qt connects
EchoBot
::
EchoBot
(
NetworkFactories
*
networkFactories
)
{
client
=
new
Swift
::
Client
(
"jid@
jabber.lit
"
,
"pass"
,
networkFactories
);
client
=
new
Swift
::
Client
(
"jid@
...
"
,
"pass"
,
networkFactories
);
client
->
setAlwaysTrustCertificates
();
client
->
onConnected
.
connect
(
boost
::
bind
(
&
EchoBot
::
handleConnected
,
this
));
client
->
onMessageReceived
.
connect
(
boost
::
bind
(
&
EchoBot
::
handleMessageReceived
,
this
,
_1
));
client
->
onPresenceReceived
.
connect
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment