diff options
Diffstat (limited to 'kalarm/functions.h')
-rw-r--r-- | kalarm/functions.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/kalarm/functions.h b/kalarm/functions.h index c5337cc48..359eca65d 100644 --- a/kalarm/functions.h +++ b/kalarm/functions.h @@ -23,8 +23,8 @@ /** @file functions.h - miscellaneous functions */ -#include <qsize.h> -#include <qstring.h> +#include <tqsize.h> +#include <tqstring.h> #include "alarmevent.h" @@ -62,54 +62,54 @@ enum KOrgUpdateError { KORG_ERR_ADD, KORG_ERR_MODIFY, KORG_ERR_DELETE }; /** Display a main window with the specified event selected */ -MainWindow* displayMainWindowSelected(const QString& eventID = QString::null); -bool readConfigWindowSize(const char* window, QSize&); -void writeConfigWindowSize(const char* window, const QSize&); +MainWindow* displayMainWindowSelected(const TQString& eventID = TQString::null); +bool readConfigWindowSize(const char* window, TQSize&); +void writeConfigWindowSize(const char* window, const TQSize&); /** Check from its mime type whether a file appears to be a text or image file. * If a text file, its type is distinguished. */ -FileType fileType(const QString& mimetype); +FileType fileType(const TQString& mimetype); /** Return current KAlarm version number */ int Version(); inline int Version(int major, int minor, int rev) { return major*10000 + minor*100 + rev; } -int getVersionNumber(const QString& version, QString* subVersion = 0); +int getVersionNumber(const TQString& version, TQString* subVersion = 0); /** Return which version of KAlarm was the first to use the current calendar/event format */ inline int currentCalendarVersion() { return KAEvent::calVersion(); } -inline QString currentCalendarVersionString() { return KAEvent::calVersionString(); } -QString browseFile(const QString& caption, QString& defaultDir, const QString& initialFile = QString::null, - const QString& filter = QString::null, int mode = 0, QWidget* parent = 0, const char* name = 0); -bool edit(const QString& eventID); -bool editNew(const QString& templateName = QString::null); +inline TQString currentCalendarVersionString() { return KAEvent::calVersionString(); } +TQString browseFile(const TQString& caption, TQString& defaultDir, const TQString& initialFile = TQString::null, + const TQString& filter = TQString::null, int mode = 0, TQWidget* parent = 0, const char* name = 0); +bool edit(const TQString& eventID); +bool editNew(const TQString& templateName = TQString::null); /** Create a "New Alarm" KAction */ -KAction* createNewAlarmAction(const QString& label, QObject* receiver, const char* slot, KActionCollection*, const char* name); +KAction* createNewAlarmAction(const TQString& label, TQObject* receiver, const char* slot, KActionCollection*, const char* name); /** Create a "New From Template" KAction */ -TemplateMenuAction* createNewFromTemplateAction(const QString& label, QObject* receiver, const char* slot, KActionCollection*, const char* name); +TemplateMenuAction* createNewFromTemplateAction(const TQString& label, TQObject* receiver, const char* slot, KActionCollection*, const char* name); /** Returns a list of all alarm templates. * If shell commands are disabled, command alarm templates are omitted. */ -QValueList<KAEvent> templateList(); -void outputAlarmWarnings(QWidget* parent, const KAEvent* = 0); +TQValueList<KAEvent> templateList(); +void outputAlarmWarnings(TQWidget* parent, const KAEvent* = 0); void resetDaemon(); void resetDaemonIfQueued(); // must only be called from KAlarmApp::processQueue() -QString runKMail(bool minimise); -bool runProgram(const QCString& program, const QCString& windowName, QCString& dcopName, QString& errorMessage); +TQString runKMail(bool minimise); +bool runProgram(const TQCString& program, const TQCString& windowName, TQCString& dcopName, TQString& errorMessage); -UpdateStatus addEvent(KAEvent&, AlarmListView* selectionView, QWidget* errmsgParent = 0, bool useEventID = false, bool allowKOrgUpdate = true); +UpdateStatus addEvent(KAEvent&, AlarmListView* selectionView, TQWidget* errmsgParent = 0, bool useEventID = false, bool allowKOrgUpdate = true); bool addExpiredEvent(KAEvent&); -UpdateStatus addTemplate(KAEvent&, TemplateListView* selectionView, QWidget* errmsgParent = 0); -UpdateStatus modifyEvent(KAEvent& oldEvent, const KAEvent& newEvent, AlarmListView* selectionView, QWidget* errmsgParent = 0); -UpdateStatus updateEvent(KAEvent&, AlarmListView* selectionView, QWidget* errmsgParent = 0, bool archiveOnDelete = true, bool incRevision = true); -UpdateStatus updateTemplate(const KAEvent&, TemplateListView* selectionView, QWidget* errmsgParent = 0); -UpdateStatus deleteEvent(KAEvent&, bool archive = true, QWidget* errmsgParent = 0); +UpdateStatus addTemplate(KAEvent&, TemplateListView* selectionView, TQWidget* errmsgParent = 0); +UpdateStatus modifyEvent(KAEvent& oldEvent, const KAEvent& newEvent, AlarmListView* selectionView, TQWidget* errmsgParent = 0); +UpdateStatus updateEvent(KAEvent&, AlarmListView* selectionView, TQWidget* errmsgParent = 0, bool archiveOnDelete = true, bool incRevision = true); +UpdateStatus updateTemplate(const KAEvent&, TemplateListView* selectionView, TQWidget* errmsgParent = 0); +UpdateStatus deleteEvent(KAEvent&, bool archive = true, TQWidget* errmsgParent = 0); UpdateStatus deleteTemplate(const KAEvent&); -void deleteDisplayEvent(const QString& eventID); +void deleteDisplayEvent(const TQString& eventID); UpdateStatus reactivateEvent(KAEvent&, AlarmListView* selectionView, bool useEventID = false); UpdateStatus enableEvent(KAEvent&, AlarmListView* selectionView, bool enable); -void displayUpdateError(QWidget* parent, UpdateStatus, UpdateError, int nAlarms); -void displayKOrgUpdateError(QWidget* parent, KOrgUpdateError, int nAlarms); +void displayUpdateError(TQWidget* parent, UpdateStatus, UpdateError, int nAlarms); +void displayKOrgUpdateError(TQWidget* parent, KOrgUpdateError, int nAlarms); void cancelScreenSaver(); -QString stripAccel(const QString&); +TQString stripAccel(const TQString&); int localeFirstDayOfWeek(); |