diff options
Diffstat (limited to 'src/kvirc/kernel/kvi_app.h')
-rw-r--r-- | src/kvirc/kernel/kvi_app.h | 93 |
1 files changed, 47 insertions, 46 deletions
diff --git a/src/kvirc/kernel/kvi_app.h b/src/kvirc/kernel/kvi_app.h index d31bd401..30e49f95 100644 --- a/src/kvirc/kernel/kvi_app.h +++ b/src/kvirc/kernel/kvi_app.h @@ -49,10 +49,10 @@ #endif // !COMPILE_NO_IPC class KviTalPopupMenu; -class QPixmap; +class TQPixmap; class KviTalListBox; -class QTextCodec; -class QDomElement; +class TQTextCodec; +class TQDomElement; class KviConsole; class KviConfig; @@ -63,10 +63,10 @@ class KviIrcServerDataBase; typedef struct _KviPendingAvatarChange { KviConsole * pConsole; - QString szRemoteUrl; - QString szNick; - QString szUser; - QString szHost; + TQString szRemoteUrl; + TQString szNick; + TQString szUser; + TQString szHost; } KviPendingAvatarChange; #ifdef Unsorted @@ -82,21 +82,22 @@ class KVIRC_API KviApp : public KviTalApplication friend class KviWindow; friend class KviSetupWizard; // this resides in a module! Q_OBJECT + TQ_OBJECT public: KviApp(int &argc,char ** argv); ~KviApp(); protected: // directories - QString m_szGlobalKvircDir; - QString m_szLocalKvircDir; + TQString m_szGlobalKvircDir; + TQString m_szLocalKvircDir; int m_iHeartbeatTimerId; bool m_bFirstTimeRun; KviWindow * m_pActiveWindow; bool m_bUpdateGuiPending; KviPointerList<KviPendingAvatarChange> * m_pPendingAvatarChanges; bool m_bSetupDone; - KviPointerHashTable<const char *,QStringList> * m_pRecentChannelsDict; + KviPointerHashTable<const char *,TQStringList> * m_pRecentChannelsDict; #ifdef COMPILE_PSEUDO_TRANSPARENCY bool m_bUpdatePseudoTransparencyPending; #endif @@ -105,7 +106,7 @@ protected: #endif public: // setup stuff (accessed from kvi_main.cpp: consider private othwerise) - QString m_szConfigFile; // setup + TQString m_szConfigFile; // setup bool m_bCreateConfig; // setup KviStr m_szExecAfterStartup; bool m_bShowSplashScreen; @@ -129,11 +130,11 @@ public: void getClipboardText(KviStr &buffer); void setClipboardText(const KviStr &str); - QString getClipboardText(); - void setClipboardText(const QString &str); + TQString getClipboardText(); + void setClipboardText(const TQString &str); - void collectGarbage(QObject * garbage); + void collectGarbage(TQObject * garbage); void destroyFrame(); void setup(); // THIS SHOULD BE PRIVATE! (but is accessed from kvi_main.cpp) @@ -142,7 +143,7 @@ public: void ipcMessage(char * message); #endif - //static QTextCodec * defaultTextCodec(); + //static TQTextCodec * defaultTextCodec(); //static const char * defaultTextEncoding(); static int getGloballyUniqueId(); // returns an unique integer identifier across the application @@ -178,22 +179,22 @@ public: void saveOptions(); void listAvailableOptions(KviWindow *wnd); - bool getOptionString(const char * optName,QString &buffer); - bool setOptionValue(const char * optName,const QString &value); + bool getOptionString(const char * optName,TQString &buffer); + bool setOptionValue(const char * optName,const TQString &value); void optionResetUpdate(int flags); void contextSensitiveHelp(); // kvi_app_fs.cpp : Filesystem thingies - void getGlobalKvircDirectory(QString &szData,KvircSubdir dir,const QString &appendFile = QString::null); - void getGlobalKvircDirectory(KviStr &szData,KvircSubdir dir,const QString &appendFile = QString::null); - void getLocalKvircDirectory(KviStr &szData,KvircSubdir dir,const QString &appendFile = QString::null,bool bCreateIfNeeded = true); - void getLocalKvircDirectory(QString &szData,KvircSubdir dir,const QString &appendFile = QString::null,bool bCreateIfNeeded = true); - void getTmpFileName(QString &szBuffer,const QString &szEndingFileName = QString::null); + void getGlobalKvircDirectory(TQString &szData,KvircSubdir dir,const TQString &appendFile = TQString()); + void getGlobalKvircDirectory(KviStr &szData,KvircSubdir dir,const TQString &appendFile = TQString()); + void getLocalKvircDirectory(KviStr &szData,KvircSubdir dir,const TQString &appendFile = TQString(),bool bCreateIfNeeded = true); + void getLocalKvircDirectory(TQString &szData,KvircSubdir dir,const TQString &appendFile = TQString(),bool bCreateIfNeeded = true); + void getTmpFileName(TQString &szBuffer,const TQString &szEndingFileName = TQString()); bool trashFile(const char *filename); - void getChannelDumpLogFileName(QString &str); + void getChannelDumpLogFileName(TQString &str); - static QTextCodec * defaultTextCodec(); + static TQTextCodec * defaultTextCodec(); // if the mediatype can be guessed ,it is looked up in the media type save path // if found , true is returned @@ -201,21 +202,21 @@ public: bool findFileByMediaType(KviStr &szRetPath,const char * filename); bool findImageInImageSearchPath(KviStr &szRetPath,const char * filename); - bool findImageInImageSearchPath(QString &szRetPath,const char * filename); + bool findImageInImageSearchPath(TQString &szRetPath,const char * filename); bool findUserFile(KviStr &szRetPath,const char *filename); bool findImage(KviStr &szRetPath,const char *filename); - bool findImage(QString &szRetPath,const char *filename); - bool findImageThemeOnlyCompat(QString &szRetPath,const char *filename); // temporary compat, will be removed soon (do not use) - bool findSmallIcon(QString &szRetPath,const char *filename); + bool findImage(TQString &szRetPath,const char *filename); + bool findImageThemeOnlyCompat(TQString &szRetPath,const char *filename); // temporary compat, will be removed soon (do not use) + bool findSmallIcon(TQString &szRetPath,const char *filename); // tries to map the full path filename to one of the KVIrc's mapped directories // if it doesn't succeed it just returns the complete filename in szRetPath bool mapImageFile(KviStr &szRetPath,const char * filename); - bool mapImageFile(QString &szRetPath,const char * filename); + bool mapImageFile(TQString &szRetPath,const char * filename); //void getDefaultDccSaveFilePath(KviStr &path,const char *filename); - void completeDirectory(const QString &word,KviPointerList<QString> * matches); + void completeDirectory(const TQString &word,KviPointerList<TQString> * matches); // // Returns a config path suitable for reading (at least) // First lookups the user local config directory, @@ -226,14 +227,14 @@ public: // directory is used // bool getReadOnlyConfigPath(KviStr &buffer,const char *config_name,KvircSubdir sbd = Config,bool bNoFail = false); - bool getReadOnlyConfigPath(QString &buffer,const char *config_name,KvircSubdir sbd = Config,bool bNoFail = false); + bool getReadOnlyConfigPath(TQString &buffer,const char *config_name,KvircSubdir sbd = Config,bool bNoFail = false); // kvi_app.cpp : Window stuff KviWindow * findWindow(const char * windowId); - KviWindow * findWindowByCaption(const QString &windowCaption,int iContextId=-1); + KviWindow * findWindowByCaption(const TQString &windowCaption,int iContextId=-1); KviConsole * findConsole(unsigned int ircContextId); KviConsole * findConsole(KviStr & server,KviStr & nick); - KviConsole * findConsole(QString & servr,QString & nick); + KviConsole * findConsole(TQString & servr,TQString & nick); KviConsole * topmostConnectedConsole(); KviConsole * activeConsole(); bool windowExists(KviWindow *wnd); @@ -250,24 +251,24 @@ public: #endif // kvi_app.cpp : DCC (and CTCP AVATAR & SOUND) related stuff - void setAvatarOnFileReceived(KviConsole * pConsole,const QString &szRemoteUrl,const QString &szNick,const QString &szUser,const QString &szHost); - KviPendingAvatarChange * findPendingAvatarChange(KviConsole * pConsole,const QString &szNick,const QString &szRemoteUrl); - void fileDownloadTerminated(bool bSuccess,const QString &szRemoteUrl,const QString &szLocalFileName,const QString &szNick = QString::null,const QString &szError = QString::null,bool bQuiet = false); + void setAvatarOnFileReceived(KviConsole * pConsole,const TQString &szRemoteUrl,const TQString &szNick,const TQString &szUser,const TQString &szHost); + KviPendingAvatarChange * findPendingAvatarChange(KviConsole * pConsole,const TQString &szNick,const TQString &szRemoteUrl); + void fileDownloadTerminated(bool bSuccess,const TQString &szRemoteUrl,const TQString &szLocalFileName,const TQString &szNick = TQString(),const TQString &szError = TQString(),bool bQuiet = false); void setAvatarFromOptions(); bool playFile(const char * filename,KviStr &error,KviWindow * w = 0); // uMessageLifetime is in seconds! and 0 means "forever" - void notifierMessage(KviWindow * pWnd,int iIconId,const QString &szMsg,unsigned int uMessageLifetime); + void notifierMessage(KviWindow * pWnd,int iIconId,const TQString &szMsg,unsigned int uMessageLifetime); void addRecentNickname(const char * newNick); - void addRecentNickname(const QString& newNick); - void addRecentChannel(const QString& chan,const QString& net); - QStringList* getRecentChannels(const QString& net); + void addRecentNickname(const TQString& newNick); + void addRecentChannel(const TQString& chan,const TQString& net); + TQStringList* getRecentChannels(const TQString& net); - void addRecentServer(const QString& server); + void addRecentServer(const TQString& server); void fillRecentServersPopup(KviTalPopupMenu * m); void fillRecentNicknamesPopup(KviTalPopupMenu * m,KviConsole * pConsole); void fillRecentChannelsPopup(KviTalPopupMenu * m,KviConsole * pConsole); @@ -285,7 +286,7 @@ protected: void unregisterWindow(KviWindow *wnd); void frameDestructorCallback(); void heartbeat(kvi_time_t tNow); - virtual void timerEvent(QTimerEvent *e); + virtual void timerEvent(TQTimerEvent *e); public slots: // kvi_app.cpp : Slots void saveConfiguration(); @@ -294,7 +295,7 @@ public slots: void kdeRootPixmapChanged(int iDesktop); void updatePseudoTransparency(); void restoreDefaultScript(); - void addRecentUrl(const QString& text); + void addRecentUrl(const TQString& text); private: void createSplashScreen(); void destroySplashScreen(); @@ -303,8 +304,8 @@ private: void loadDirectories(); void findGlobalKvircDirectory(); bool findLocalKvircDirectory(); - bool checkGlobalKvircDirectory(const QString); - bool checkLocalKvircDirectory(const QString); + bool checkGlobalKvircDirectory(const TQString); + bool checkLocalKvircDirectory(const TQString); bool checkFileAssociations(); void setupFileAssociations(); @@ -317,7 +318,7 @@ private: void updateApplicationFont(); #ifdef COMPILE_PSEUDO_TRANSPARENCY - void createGlobalBackgrounds(QPixmap * pix); + void createGlobalBackgrounds(TQPixmap * pix); void destroyPseudoTransparency(); #ifdef COMPILE_KDE_SUPPORT void downloadKdeRootPixmap(); |