diff options
Diffstat (limited to 'kbfxlib/data/kbfxdatasource.h')
-rw-r--r-- | kbfxlib/data/kbfxdatasource.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/kbfxlib/data/kbfxdatasource.h b/kbfxlib/data/kbfxdatasource.h index aba89ad..ea121a4 100644 --- a/kbfxlib/data/kbfxdatasource.h +++ b/kbfxlib/data/kbfxdatasource.h @@ -22,8 +22,8 @@ #ifndef KBFX_DATA_SOURCE_H #define KBFX_DATA_SOURCE_H -#include <qvaluelist.h> -#include <qstring.h> +#include <tqvaluelist.h> +#include <tqstring.h> class KbfxDataSource { @@ -32,7 +32,7 @@ class KbfxDataSource public: typedef enum { DESKTOP = 0, NONDESKTOP } Type; - typedef QValueList < KbfxDataSource > DataSourceList; + typedef TQValueList < KbfxDataSource > DataSourceList; /** * Constructs a new DataSource. Data source is a simple class that holds * a .desktop file and also you can include a custom commmand that can be @@ -47,7 +47,7 @@ class KbfxDataSource * a desktop file use KbfxDataSource::setDesktopPath() functions instead * @param name should be the name of the data source */ - void setName ( QString name ) + void setName ( TQString name ) { m_text = name; } @@ -57,24 +57,24 @@ class KbfxDataSource * abstracts such functions. * @param path should be the absolute path of a valid desktop file */ - void setDesktopPath ( QString path ) + void setDesktopPath ( TQString path ) { m_desktopPath = path; m_type = DESKTOP; loadDesktopFile (); } - virtual void setCommand ( QString cmd ) + virtual void setCommand ( TQString cmd ) { m_command = cmd; } - void setContentPath ( QString path ) + void setContentPath ( TQString path ) { m_contentPath = path; } - QString contentPath () + TQString contentPath () { return m_contentPath; } @@ -86,35 +86,35 @@ class KbfxDataSource virtual void exec (); - void setComment ( QString comment ) + void setComment ( TQString comment ) { m_comment = comment; }; - void setDescription ( QString desc ) + void setDescription ( TQString desc ) { m_description = desc; } - void setIconPath ( QString path ) + void setIconPath ( TQString path ) { m_iconPath = path; } - QString desktopFile () + TQString desktopFile () { return m_desktopPath; } //out - QString name () + TQString name () { return m_text; } - QString icon () + TQString icon () { return m_iconPath; }; - QString command () + TQString command () { return m_command; } @@ -127,24 +127,24 @@ class KbfxDataSource * functio will NOT return NULL so no checking needed * @return the comment of the data source or empty string */ - QString comment () + TQString comment () { return m_comment; } - bool lookup ( QString str ); + bool lookup ( TQString str ); private: //TODO //MOve to private D void loadDesktopFile (); - QString m_text; - QString m_desktopPath; - QString m_command; - QString m_iconPath; - QString m_comment; - QString m_description; - QString m_keyWords; + TQString m_text; + TQString m_desktopPath; + TQString m_command; + TQString m_iconPath; + TQString m_comment; + TQString m_description; + TQString m_keyWords; Type m_type; - QString m_contentPath; + TQString m_contentPath; }; |