[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/protocols/jabber
From: Robert Gogolok <robertgogolok () gmx ! de>
Date: 2003-07-15 10:12:35
[Download RAW message or body]
CVS commit by gogolok:
Remove Authorization
todo:
the order in the popup menu is wrong
M +3 -0 jabberaccount.h 1.24
M +10 -0 jabbercontact.cpp 1.138
M +5 -0 jabbercontact.h 1.80
--- kdenonbeta/kopete/protocols/jabber/jabberaccount.h #1.23:1.24
@@ -71,4 +71,7 @@ public:
void subscribed (const Jid & jid);
+ /* Removes another JID's authorization. */
+ void unsubscribed (const Jid & jid);
+
public slots:
/* Connects to the server. */
--- kdenonbeta/kopete/protocols/jabber/jabbercontact.cpp #1.137:1.138
@@ -147,4 +147,6 @@ KActionCollection *JabberContact::custom
new KAction (i18n ("(Re)send Authorization To"), "forward", 0, this, SLOT \
(slotSendAuth ()), actionCollection, "actionSendAuth");
new KAction (i18n ("(Re)request Authorization From"), "back", 0, this, SLOT \
(slotRequestAuth ()), actionCollection, "actionRequestAuth"); + // FIXME wrong \
position in the popup menu + new KAction (i18n ("Remove Authorization From"), \
"", 0, this, SLOT (slotRemoveAuth ()), actionCollection, "actionRemoveAuth");
KActionMenu *actionSetAvailability = new KActionMenu (i18n ("Set \
Availability"), "kopeteavailable", actionCollection, "jabber_online"); @@ -293,4 \
+295,12 @@ void JabberContact::slotRequestAuth () }
+void JabberContact::slotRemoveAuth ()
+{
+
+ kdDebug (14130) << "[JabberContact] Remove auth " << userId () << endl;
+
+ static_cast<JabberAccount *>(account())->unsubscribed (Jabber::Jid (userId \
())); +
+}
void JabberContact::syncGroups ()
{
--- kdenonbeta/kopete/protocols/jabber/jabbercontact.h #1.79:1.80
@@ -183,4 +183,9 @@ private slots:
*/
void slotRequestAuth ();
+
+ /**
+ * Send type="unsubscribed" to contact
+ */
+ void slotRemoveAuth ();
/**
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic