diff options
Diffstat (limited to 'src/likeback.h')
-rw-r--r-- | src/likeback.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/likeback.h b/src/likeback.h index 4b825a5..e5d383a 100644 --- a/src/likeback.h +++ b/src/likeback.h @@ -21,7 +21,7 @@ #ifndef LIKEBACK_H #define LIKEBACK_H -#include <qobject.h> +#include <ntqobject.h> class KConfig; class KAboutData; @@ -59,7 +59,7 @@ class LikeBackDialog; * // Instanciate the LikeBack system, and show the first-use information dialog if the button-bar is shown: * LikeBack *likeBack = new LikeBack(LikeBack::AllButtons, LikeBack::isDevelopmentVersion(kapp->aboutData->version())); // Show button-bar only in beta-versions * likeBack->setServer("myapp.kde.org", "/likeback/send.php"); - * likeBack->setAcceptedLanguages(QStringList::split(";", "en;fr"), i18n("Please write in English or French.")); + * likeBack->setAcceptedLanguages(TQStringList::split(";", "en;fr"), i18n("Please write in English or French.")); * * // Comment the following line once you are sure all your windows have a name: * likeBack->setWindowNamesListing(LikeBack::WarnUnnamedWindows); @@ -72,7 +72,7 @@ class LikeBackDialog; * @see Visit http://basket.kde.org/likeback.php for more information, screenshots, a tutorial, hints, return of experiences, and to download the server-side developer interface... * @author Sebastien Laout <slaout@linux62.org> */ -class LikeBack : public QObject +class LikeBack : public TQObject { Q_OBJECT public: @@ -160,25 +160,25 @@ class LikeBack : public QObject * Passing an empty list and an empty string to the method will make LikeBack display the default message telling the user only English is accepted. * Example of call you can quickly copy, paste and adapt: * @code - * likeBack->setAcceptedLanguages(QStringList::split(";", "en;fr"), i18n("Please write in English or French.")); + * likeBack->setAcceptedLanguages(TQStringList::split(";", "en;fr"), i18n("Please write in English or French.")); * @endcode * @Note During tests, if you do not see the sentence, it is because you are running the application with an "accepted language": do not be surprised ;-) * @param locales The list of locales where the message does not need to be shown. See TODO TODO for a list of available locales for you to choose. * @param message The message to displays to the user to tell him what languages are accepted to write his comments. */ - void setAcceptedLanguages(const QStringList &locales, const QString &message); + void setAcceptedLanguages(const TQStringList &locales, const TQString &message); /** * @Returns The list of accepted locales for the user to write comments. * @see setAcceptedLanguages() */ - QStringList acceptedLocales(); + TQStringList acceptedLocales(); /** * @Returns The message displayed to users who are not running the application in an accepted locale. * @see setAcceptedLanguages() */ - QString acceptedLanguagesMessage(); + TQString acceptedLanguagesMessage(); /** * Set the path where LikeBack should send every comments. @@ -188,25 +188,25 @@ class LikeBack : public QObject * @param remotePath The path to the send script on the server. For instance, "/likeback/send.php". * @param hostPort Optionnal port used to contact the server using the HTTP protocol. By default, it is port 80. */ - void setServer(const QString &hostName, const QString &remotePath, Q_UINT16 hostPort = 80); + void setServer(const TQString &hostName, const TQString &remotePath, TQ_UINT16 hostPort = 80); /** * @Returns The server host name to contact when sending comments. * @see setServer() */ - QString hostName(); + TQString hostName(); /** * @Returns The path to the send script on the server. * @see setServer() */ - QString remotePath(); + TQString remotePath(); /** * @Returns The port used to contact the server using the HTTP protocol. * @see setServer() */ - Q_UINT16 hostPort(); + TQ_UINT16 hostPort(); /** * Get the KAction letting user to show the comment dialog. @@ -226,7 +226,7 @@ class LikeBack : public QObject * Normally, you should not need to call this method since it is used to send the window path. * But if you call execCommentDialog(), you could need to use it. */ - static QString activeWindowPath(); + static TQString activeWindowPath(); /** * @Returns The combination of buttons that are shown in the comment dialog and the button-bar. @@ -284,7 +284,7 @@ class LikeBack : public QObject * is commenting a thing he found/thinked about in a sub-dialog. * @param context Not used for the moment. Will allow more fine-grained application status report. */ - void execCommentDialog(Button type = AllButtons, const QString &initialComment = "", const QString &windowPath = "", const QString &context = ""); + void execCommentDialog(Button type = AllButtons, const TQString &initialComment = "", const TQString &windowPath = "", const TQString &context = ""); /** * Popups the dialog for the user to set his email address. @@ -345,20 +345,20 @@ class LikeBack : public QObject * @Returns The email user address, or ask it to the user if he have not provided or ignored it. * @Returns An empty string if the user cancelled the request dialog. */ - QString emailAddress(); + TQString emailAddress(); /** * Define or re-define the user email address. * LikeBack will not ask it again to the user, unless you set @p userProvided to false. * Then, this call can be considered as setting the default email address, that the user should confirm later. */ - void setEmailAddress(const QString &address, bool userProvided = true); + void setEmailAddress(const TQString &address, bool userProvided = true); /** * @Returns true if @p version is an Alpha, Beta, RC, SVN or CVS version. * You can use this static method in the constructor to enable the button-bar by default only during beta-releases. */ - static bool isDevelopmentVersion(const QString &version); + static bool isDevelopmentVersion(const TQString &version); }; #endif // LIKEBACK_H |