diff options
Diffstat (limited to 'src/gnunet/social/host.cpp')
-rw-r--r-- | src/gnunet/social/host.cpp | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/gnunet/social/host.cpp b/src/gnunet/social/host.cpp index 94a8dee..fccc186 100644 --- a/src/gnunet/social/host.cpp +++ b/src/gnunet/social/host.cpp | |||
@@ -50,8 +50,8 @@ Host::~Host () | |||
50 | void | 50 | void |
51 | Host::connectSignals () | 51 | Host::connectSignals () |
52 | { | 52 | { |
53 | connect (this, SIGNAL (announceSignal (QString)), | 53 | connect (this, SIGNAL (talkSignal (QString, QString)), |
54 | this, SLOT (announce (QString)), | 54 | this, SLOT (talk (QString, QString)), |
55 | Qt::QueuedConnection); | 55 | Qt::QueuedConnection); |
56 | } | 56 | } |
57 | 57 | ||
@@ -68,7 +68,7 @@ Host::answerDoorCallback (void *cls, struct GNUNET_SOCIAL_Nym *nym, | |||
68 | "%s\n%.*s\n", method_name, data_size, data); | 68 | "%s\n%.*s\n", method_name, data_size, data); |
69 | 69 | ||
70 | Host *host = (Host *) cls; | 70 | Host *host = (Host *) cls; |
71 | emit host->answerDoorSignal (new Message (method_name, env, data, data_size, | 71 | emit host->answerDoorSignal (new Message (0, method_name, env, data, data_size, |
72 | 0, nym)); | 72 | 0, nym)); |
73 | } | 73 | } |
74 | 74 | ||
@@ -112,7 +112,7 @@ Host::farewellCallback (void *cls, | |||
112 | 112 | ||
113 | 113 | ||
114 | void | 114 | void |
115 | Host::announce (Message *msg) | 115 | Host::talk (Message *msg) |
116 | { | 116 | { |
117 | if (m_inTransmit) | 117 | if (m_inTransmit) |
118 | { | 118 | { |
@@ -135,19 +135,11 @@ Host::announce (Message *msg) | |||
135 | 135 | ||
136 | 136 | ||
137 | void | 137 | void |
138 | Host::announce (QString text) | ||
139 | { | ||
140 | qDebug () << "Host.announce: " << text; | ||
141 | Message msg ("_converse", QList<Modifier *>(), text); | ||
142 | announce (&msg); | ||
143 | } | ||
144 | |||
145 | |||
146 | void | ||
147 | Host::talk (QString text) | 138 | Host::talk (QString text) |
148 | { | 139 | { |
149 | qDebug () << "Host.talk: " << text; | 140 | qDebug () << "Host.announce: " << text; |
150 | emit announceSignal (text); | 141 | Message msg (this, "_converse", QList<Modifier *>(), text); |
142 | talk (&msg); | ||
151 | } | 143 | } |
152 | 144 | ||
153 | 145 | ||