diff options
| author | Manuel Traut <manut@mecka.net> | 2014-02-18 23:36:45 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@mecka.net> | 2014-02-18 23:36:45 +0100 |
| commit | 07761742a5a104020c975f649bd188a950a4891c (patch) | |
| tree | e3b551f1f5680d2fc48a6ad4d84dde46727ac817 /frameworks/middleware/examples/xmpp/README | |
| parent | a9f5c60272e630c3de528dc773eb5af491a01e0a (diff) | |
middleware/xmpp: add an example
- this is a minimal qt client that can be used with a jabber/xmpp server
- have a look at the README file for the test setup
Signed-off-by: Manuel Traut <manut@mecka.net>
Diffstat (limited to 'frameworks/middleware/examples/xmpp/README')
| -rw-r--r-- | frameworks/middleware/examples/xmpp/README | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/frameworks/middleware/examples/xmpp/README b/frameworks/middleware/examples/xmpp/README new file mode 100644 index 0000000..ef147ce --- /dev/null +++ b/frameworks/middleware/examples/xmpp/README @@ -0,0 +1,28 @@ +a) apt-get install libqxmpp-dev psi ejabberd + +b) edit /etc/ejabberd/ejabberd.cfg to allow inband registration: + + --8<--- + %% No username can be registered via in-band registration: + %% To enable in-band registration, replace 'deny' with 'allow' + % (note that if you remove mod_register from modules list then users will not + % be able to change their password as well as register). + % This setting is default because it's more safe. + {access, register, [{allow, all}]}. + --8<--- + +c) start psi and configure it to use 'localhost' as server and create two + accounts: <yourname>:<yourpass> + qtapp:test + +d) login with <yourname> and qtapp, add both accounts to their contact list, + and try to send messages. logoff the qtapp account. + +e) build the qt client application and start it: + +qmake +make +./client + +f) the qtapp account needs now to be online in psi, write a messagte to qtapp + the message should be displayed in the commandline |
