Rename a number of classes to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 401ba79d4e
commit b90b805733

@ -58,11 +58,11 @@ OtrGUIClient::OtrGUIClient( Kopete::ChatSession *parent, const char *name )
connect( this, TQT_SIGNAL( signalVerifyFingerprint( Kopete::ChatSession * ) ), OTRPlugin::plugin(), TQT_SLOT(slotVerifyFingerprint( Kopete::ChatSession * )) ); connect( this, TQT_SIGNAL( signalVerifyFingerprint( Kopete::ChatSession * ) ), OTRPlugin::plugin(), TQT_SLOT(slotVerifyFingerprint( Kopete::ChatSession * )) );
m_manager = parent; m_manager = parent;
otrActionMenu = new KActionMenu(i18n("OTR Settings"),"otr_disabled", actionCollection(), "otr_settings"); otrActionMenu = new TDEActionMenu(i18n("OTR Settings"),"otr_disabled", actionCollection(), "otr_settings");
otrActionMenu->setDelayed( false ); otrActionMenu->setDelayed( false );
actionEnableOtr = new KAction(i18n( "Start OTR session" ), "otr_private", 0,this,TQT_SLOT(slotEnableOtr()),actionCollection(), "enable_otr"); actionEnableOtr = new TDEAction(i18n( "Start OTR session" ), "otr_private", 0,this,TQT_SLOT(slotEnableOtr()),actionCollection(), "enable_otr");
actionDisableOtr = new KAction(i18n("End OTR session"), "otr_disabled",0, this,TQT_SLOT(slotDisableOtr()), actionCollection(), "disable_otr"); actionDisableOtr = new TDEAction(i18n("End OTR session"), "otr_disabled",0, this,TQT_SLOT(slotDisableOtr()), actionCollection(), "disable_otr");
actionVerifyFingerprint = new KAction(i18n("Authenticate Contact"), "signature",0, this,TQT_SLOT(slotVerifyFingerprint()), actionCollection(), "verify_fingerprint"); actionVerifyFingerprint = new TDEAction(i18n("Authenticate Contact"), "signature",0, this,TQT_SLOT(slotVerifyFingerprint()), actionCollection(), "verify_fingerprint");
otrActionMenu->insert(actionEnableOtr); otrActionMenu->insert(actionEnableOtr);
otrActionMenu->insert(actionDisableOtr); otrActionMenu->insert(actionDisableOtr);

@ -35,8 +35,8 @@
#include <kopeteplugin.h> #include <kopeteplugin.h>
class KActionMenu; class TDEActionMenu;
class KAction; class TDEAction;
namespace Kopete { class ChatSession; } namespace Kopete { class ChatSession; }
@ -60,10 +60,10 @@ public:
private: private:
Kopete::ChatSession *m_manager; Kopete::ChatSession *m_manager;
KActionMenu *otrActionMenu; TDEActionMenu *otrActionMenu;
KAction *actionEnableOtr; TDEAction *actionEnableOtr;
KAction *actionDisableOtr; TDEAction *actionDisableOtr;
KAction *actionVerifyFingerprint; TDEAction *actionVerifyFingerprint;
private slots: private slots:
void slotEnableOtr(); void slotEnableOtr();

@ -143,7 +143,7 @@ OTRPlugin::OTRPlugin( TQObject *parent, const char *name, const TQStringList & /
//adding menu to contaclists menubar and contacts popup menu //adding menu to contaclists menubar and contacts popup menu
TQStringList policies; TQStringList policies;
policies << i18n("&Default") << i18n("Al&ways") << i18n("&Opportunistic") << i18n("&Manual") << i18n("Ne&ver"); policies << i18n("&Default") << i18n("Al&ways") << i18n("&Opportunistic") << i18n("&Manual") << i18n("Ne&ver");
otrPolicyMenu = new KSelectAction( i18n( "&OTR Policy" ), TQString::fromLatin1("kopete_otr"), 0, actionCollection(), "otr_policy" ); otrPolicyMenu = new TDESelectAction( i18n( "&OTR Policy" ), TQString::fromLatin1("kopete_otr"), 0, actionCollection(), "otr_policy" );
otrPolicyMenu->setItems( policies ); otrPolicyMenu->setItems( policies );
otrPolicyMenu->popupMenu()->insertSeparator( 1 ); otrPolicyMenu->popupMenu()->insertSeparator( 1 );
otrPolicyMenu->setEnabled( false ); otrPolicyMenu->setEnabled( false );

@ -32,7 +32,7 @@
*/ */
class OTRPlugin; class OTRPlugin;
class KSelectAction; class TDESelectAction;
class OtrMessageHandler : public Kopete::MessageHandler class OtrMessageHandler : public Kopete::MessageHandler
{ {
@ -98,15 +98,15 @@ private:
OtrMessageHandlerFactory *m_inboundHandler; OtrMessageHandlerFactory *m_inboundHandler;
OtrlChatInterface *otrlChatInterface; OtrlChatInterface *otrlChatInterface;
TQMap<TQString, TQString> messageCache; TQMap<TQString, TQString> messageCache;
KSelectAction* otrPolicyMenu; TDESelectAction* otrPolicyMenu;
/* KActionMenu *otrPolicyMenuBar; /* TDEActionMenu *otrPolicyMenuBar;
KActionMenu *otrPolicyPopup; TDEActionMenu *otrPolicyPopup;
KAction *otrPolicyDefault; TDEAction *otrPolicyDefault;
KAction *otrPolicyAlways; TDEAction *otrPolicyAlways;
KAction *otrPolicyOpportunistic; TDEAction *otrPolicyOpportunistic;
KAction *otrPolicyManual; TDEAction *otrPolicyManual;
KAction *otrPolicyNever; TDEAction *otrPolicyNever;
// SessionManager manager // SessionManager manager
*/ */

Loading…
Cancel
Save