summaryrefslogtreecommitdiffstats
path: root/src/otrlchatinterface.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 20:09:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-30 20:09:36 +0000
commitc54c3c07f612a7e039b015e8a2c4d8ec9ca5e9ff (patch)
tree9252de70e029efb2850bd6ac7508e058651d07eb /src/otrlchatinterface.h
parentc99e1ecc99f459c847136f51b98d905fcb11dd26 (diff)
downloadkopete-otr-c54c3c07f612a7e039b015e8a2c4d8ec9ca5e9ff.tar.gz
kopete-otr-c54c3c07f612a7e039b015e8a2c4d8ec9ca5e9ff.zip
TQt4 port kopete-otr
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kopete-otr@1238882 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/otrlchatinterface.h')
-rw-r--r--src/otrlchatinterface.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/otrlchatinterface.h b/src/otrlchatinterface.h
index 9fcf632..1fa499b 100644
--- a/src/otrlchatinterface.h
+++ b/src/otrlchatinterface.h
@@ -25,11 +25,11 @@
* @author Michael Zanetti
*/
-#include <qstring.h>
-#include <qptrlist.h>
-#include <qvaluelist.h>
-#include <qthread.h>
-#include <qmutex.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
+#include <tqthread.h>
+#include <tqmutex.h>
#include <kopetechatsession.h>
@@ -40,47 +40,47 @@ extern "C" {
#include <libotr/userstate.h>
}
-class OtrlChatInterface: public QObject
+class OtrlChatInterface: public TQObject
{
public:
~OtrlChatInterface();
static OtrlChatInterface *self();
- int decryptMessage( QString *msg, QString accountId, QString protocol, QString contactId, Kopete::ChatSession *chatSession );
- QString encryptMessage( QString msg, QString accountId,
- QString protocol, QString contactId , Kopete::ChatSession *chatSession );
- QString getDefaultQuery( QString accountId );
+ int decryptMessage( TQString *msg, TQString accountId, TQString protocol, TQString contactId, Kopete::ChatSession *chatSession );
+ TQString encryptMessage( TQString msg, TQString accountId,
+ TQString protocol, TQString contactId , Kopete::ChatSession *chatSession );
+ TQString getDefaultQuery( TQString accountId );
void disconnectSession( Kopete::ChatSession *chatSession );
void setPolicy( OtrlPolicy policy );
- bool shouldDiscard( QString message );
+ bool shouldDiscard( TQString message );
OtrlUserState getUserstate();
int privState( Kopete::ChatSession *session );
- QString formatContact(QString contactId);
+ TQString formatContact(TQString contactId);
bool isVerified( Kopete::ChatSession *session );
void updateKeyfile( Kopete::Account *account );
- void checkFilePermissions( QString file );
-// bool verifyQuestion( Kopete::ChatSession *session, QString fingerprint );
- QString findActiveFingerprint( Kopete::ChatSession *session );
+ void checkFilePermissions( TQString file );
+// bool verifyQuestion( Kopete::ChatSession *session, TQString fingerprint );
+ TQString findActiveFingerprint( Kopete::ChatSession *session );
void verifyFingerprint( Kopete::ChatSession *session );
void abortSMP( ConnContext *context, Kopete::ChatSession *session );
- void respondSMP( ConnContext *context, Kopete::ChatSession *session, QString secret, bool initiate );
+ void respondSMP( ConnContext *context, Kopete::ChatSession *session, TQString secret, bool initiate );
void setTrust( Kopete::ChatSession *session, bool trust );
private:
OtrlChatInterface();
static OtrlChatInterface *mSelf;
- Fingerprint *findFingerprint( QString username );
+ Fingerprint *findFingerprint( TQString username );
};
- class KeyGenThread : public QThread {
+ class KeyGenThread : public TQThread {
private:
- QString accountname;
- QString protocol;
+ TQString accountname;
+ TQString protocol;
public:
- KeyGenThread( QString accountname, QString protocol );
+ KeyGenThread( TQString accountname, TQString protocol );
virtual void run();
};