summaryrefslogtreecommitdiffstats
path: root/kalarm/kalarmapp.h
diff options
context:
space:
mode:
Diffstat (limited to 'kalarm/kalarmapp.h')
-rw-r--r--kalarm/kalarmapp.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/kalarm/kalarmapp.h b/kalarm/kalarmapp.h
index 22c7649b3..3f33bfa51 100644
--- a/kalarm/kalarmapp.h
+++ b/kalarm/kalarmapp.h
@@ -23,7 +23,7 @@
/** @file kalarmapp.h - the KAlarm application object */
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
class QTimer;
class QDateTime;
@@ -61,8 +61,8 @@ class KAlarmApp : public KUniqueApplication
bool restoreSession();
bool sessionClosingDown() const { return mSessionClosingDown; }
void quitIf() { quitIf(0); }
- void doQuit(QWidget* parent);
- static void displayFatalError(const QString& message);
+ void doQuit(TQWidget* parent);
+ static void displayFatalError(const TQString& message);
void addWindow(TrayWindow* w) { mTrayWindow = w; }
void removeWindow(TrayWindow*);
TrayWindow* trayWindow() const { return mTrayWindow; }
@@ -75,20 +75,20 @@ class KAlarmApp : public KUniqueApplication
void* execAlarm(KAEvent&, const KAAlarm&, bool reschedule, bool allowDefer = true, bool noPreAction = false);
void alarmShowing(KAEvent&, KAAlarm::Type, const DateTime&);
void alarmCompleted(const KAEvent&);
- bool deleteEvent(const QString& eventID) { return handleEvent(eventID, EVENT_CANCEL); }
- void commandMessage(ShellProcess*, QWidget* parent);
+ bool deleteEvent(const TQString& eventID) { return handleEvent(eventID, EVENT_CANCEL); }
+ void commandMessage(ShellProcess*, TQWidget* parent);
// Methods called indirectly by the DCOP interface
- bool scheduleEvent(KAEvent::Action, const QString& text, const QDateTime&,
- int lateCancel, int flags, const QColor& bg, const QColor& fg,
- const QFont&, const QString& audioFile, float audioVolume,
+ bool scheduleEvent(KAEvent::Action, const TQString& text, const TQDateTime&,
+ int lateCancel, int flags, const TQColor& bg, const TQColor& fg,
+ const TQFont&, const TQString& audioFile, float audioVolume,
int reminderMinutes, const KARecurrence& recurrence,
int repeatInterval, int repeatCount,
uint mailFromID = 0, const EmailAddressList& mailAddresses = EmailAddressList(),
- const QString& mailSubject = QString::null,
- const QStringList& mailAttachments = QStringList());
- bool handleEvent(const QString& calendarFile, const QString& eventID) { return handleEvent(calendarFile, eventID, EVENT_HANDLE); }
- bool triggerEvent(const QString& calendarFile, const QString& eventID) { return handleEvent(calendarFile, eventID, EVENT_TRIGGER); }
- bool deleteEvent(const QString& calendarFile, const QString& eventID) { return handleEvent(calendarFile, eventID, EVENT_CANCEL); }
+ const TQString& mailSubject = TQString::null,
+ const TQStringList& mailAttachments = TQStringList());
+ bool handleEvent(const TQString& calendarFile, const TQString& eventID) { return handleEvent(calendarFile, eventID, EVENT_HANDLE); }
+ bool triggerEvent(const TQString& calendarFile, const TQString& eventID) { return handleEvent(calendarFile, eventID, EVENT_TRIGGER); }
+ bool deleteEvent(const TQString& calendarFile, const TQString& eventID) { return handleEvent(calendarFile, eventID, EVENT_CANCEL); }
public slots:
void processQueue();
signals:
@@ -123,20 +123,20 @@ class KAlarmApp : public KUniqueApplication
bool tempFile() const { return flags & TEMP_FILE; }
bool execInXterm() const { return flags & EXEC_IN_XTERM; }
ShellProcess* process;
- QGuardedPtr<ShellProcess> logProcess;
+ TQGuardedPtr<ShellProcess> logProcess;
KAEvent* event;
KAAlarm* alarm;
- QGuardedPtr<QWidget> messageBoxParent;
- QStringList tempFiles;
+ TQGuardedPtr<TQWidget> messageBoxParent;
+ TQStringList tempFiles;
int flags;
};
struct DcopQEntry
{
- DcopQEntry(EventFunc f, const QString& id) : function(f), eventId(id) { }
+ DcopQEntry(EventFunc f, const TQString& id) : function(f), eventId(id) { }
DcopQEntry(const KAEvent& e, EventFunc f = EVENT_HANDLE) : function(f), event(e) { }
DcopQEntry() { }
EventFunc function;
- QString eventId;
+ TQString eventId;
KAEvent event;
};
@@ -146,29 +146,29 @@ class KAlarmApp : public KUniqueApplication
bool checkSystemTray();
void changeStartOfDay();
void setUpDcop();
- bool handleEvent(const QString& calendarFile, const QString& eventID, EventFunc);
- bool handleEvent(const QString& eventID, EventFunc);
+ bool handleEvent(const TQString& calendarFile, const TQString& eventID, EventFunc);
+ bool handleEvent(const TQString& eventID, EventFunc);
void rescheduleAlarm(KAEvent&, const KAAlarm&, bool updateCalAndDisplay);
void cancelAlarm(KAEvent&, KAAlarm::Type, bool updateCalAndDisplay);
- ShellProcess* doShellCommand(const QString& command, const KAEvent&, const KAAlarm*, int flags = 0);
- QString createTempScriptFile(const QString& command, bool insertShell, const KAEvent&, const KAAlarm&);
+ ShellProcess* doShellCommand(const TQString& command, const KAEvent&, const KAAlarm*, int flags = 0);
+ TQString createTempScriptFile(const TQString& command, bool insertShell, const KAEvent&, const KAAlarm&);
void commandErrorMsg(const ShellProcess*, const KAEvent&, const KAAlarm*, int flags = 0);
static KAlarmApp* theInstance; // the one and only KAlarmApp instance
static int mActiveCount; // number of active instances without main windows
static int mFatalError; // a fatal error has occurred - just wait to exit
- static QString mFatalMessage; // fatal error message to output
+ static TQString mFatalMessage; // fatal error message to output
bool mInitialised; // initialisation complete: ready to handle DCOP calls
DcopHandler* mDcopHandler; // the parent of the main DCOP receiver object
#ifdef OLD_DCOP
DcopHandlerOld* mDcopHandlerOld; // the parent of the old main DCOP receiver object
#endif
TrayWindow* mTrayWindow; // active system tray icon
- QTime mStartOfDay; // start-of-day time currently in use
- QColor mPrefsExpiredColour; // expired alarms text colour
+ TQTime mStartOfDay; // start-of-day time currently in use
+ TQColor mPrefsExpiredColour; // expired alarms text colour
int mPrefsExpiredKeepDays;// how long expired alarms are being kept
- QValueList<ProcData*> mCommandProcesses; // currently active command alarm processes
- QValueList<DcopQEntry> mDcopQueue; // DCOP command queue
+ TQValueList<ProcData*> mCommandProcesses; // currently active command alarm processes
+ TQValueList<DcopQEntry> mDcopQueue; // DCOP command queue
int mPendingQuitCode; // exit code for a pending quit
bool mPendingQuit; // quit once the DCOP command and shell command queues have been processed
bool mProcessingQueue; // a mDcopQueue entry is currently being processed