summaryrefslogtreecommitdiffstats
path: root/kalarm/kalarmapp.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/kalarmapp.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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