summaryrefslogtreecommitdiffstats
path: root/libkcal/alarm.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 /libkcal/alarm.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 'libkcal/alarm.h')
-rw-r--r--libkcal/alarm.h86
1 files changed, 43 insertions, 43 deletions
diff --git a/libkcal/alarm.h b/libkcal/alarm.h
index 64970e639..7d82cf65d 100644
--- a/libkcal/alarm.h
+++ b/libkcal/alarm.h
@@ -22,9 +22,9 @@
#ifndef KCAL_ALARM_H
#define KCAL_ALARM_H
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
#include "customproperties.h"
#include "duration.h"
@@ -81,34 +81,34 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
@param text text to display when the alarm is triggered.
*/
- void setDisplayAlarm( const QString &text = QString::null );
+ void setDisplayAlarm( const TQString &text = TQString::null );
/**
Set the text to be displayed when the alarm is triggered.
Ignored if the alarm is not a display alarm.
*/
- void setText( const QString &text );
+ void setText( const TQString &text );
/**
Return the text string that displays when the alarm is triggered.
*/
- QString text() const;
+ TQString text() const;
/**
Set the alarm to be an audio alarm.
@param audioFile optional file to play when the alarm is triggered.
*/
- void setAudioAlarm( const QString &audioFile = QString::null );
+ void setAudioAlarm( const TQString &audioFile = TQString::null );
/**
Set the file to play when the audio alarm is triggered.
Ignored if the alarm is not an audio alarm.
*/
- void setAudioFile( const QString &audioFile );
+ void setAudioFile( const TQString &audioFile );
/**
Return the name of the audio file for the alarm.
- @return The audio file for the alarm, or QString::null if not an audio alarm.
+ @return The audio file for the alarm, or TQString::null if not an audio alarm.
*/
- QString audioFile() const;
+ TQString audioFile() const;
/**
Set the alarm to be a procedure alarm.
@@ -116,30 +116,30 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
@param programFile program to execute when the alarm is triggered.
@param arguments arguments to supply to programFile.
*/
- void setProcedureAlarm( const QString &programFile,
- const QString &arguments = QString::null );
+ void setProcedureAlarm( const TQString &programFile,
+ const TQString &arguments = TQString::null );
/**
Set the program file to execute when the alarm is triggered.
Ignored if the alarm is not a procedure alarm.
*/
- void setProgramFile( const QString &programFile );
+ void setProgramFile( const TQString &programFile );
/**
Return the name of the program file to execute when the alarm is triggered.
- @return the program file name, or QString::null if not a procedure alarm.
+ @return the program file name, or TQString::null if not a procedure alarm.
*/
- QString programFile() const;
+ TQString programFile() const;
/**
Set the arguments to the program to execute when the alarm is triggered.
Ignored if the alarm is not a procedure alarm.
*/
- void setProgramArguments( const QString &arguments );
+ void setProgramArguments( const TQString &arguments );
/**
Return the arguments to the program to run when the alarm is triggered.
- @return the program arguments, or QString::null if not a procedure alarm.
+ @return the program arguments, or TQString::null if not a procedure alarm.
*/
- QString programArguments() const;
+ TQString programArguments() const;
/**
Set the alarm to be an email alarm.
@@ -149,9 +149,9 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
@param addressees email addresses of recipient(s).
@param attachments optional names of files to attach to the email.
*/
- void setEmailAlarm( const QString &subject, const QString &text,
- const QValueList<Person> &addressees,
- const QStringList &attachments = QStringList() );
+ void setEmailAlarm( const TQString &subject, const TQString &text,
+ const TQValueList<Person> &addressees,
+ const TQStringList &attachments = TQStringList() );
/**
Send mail to this address when the alarm is triggered.
@@ -162,7 +162,7 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
Send mail to these addresses when the alarm is triggered.
Ignored if the alarm is not an email alarm.
*/
- void setMailAddresses( const QValueList<Person> &mailAlarmAddresses );
+ void setMailAddresses( const TQValueList<Person> &mailAlarmAddresses );
/**
Add this address to the list of addresses to send mail to when the alarm is triggered.
Ignored if the alarm is not an email alarm.
@@ -171,63 +171,63 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
/**
Return the addresses to send mail to when an alarm goes off.
*/
- QValueList<Person> mailAddresses() const;
+ TQValueList<Person> mailAddresses() const;
/**
Set the subject line of the mail.
Ignored if the alarm is not an email alarm.
*/
- void setMailSubject( const QString &mailAlarmSubject );
+ void setMailSubject( const TQString &mailAlarmSubject );
/**
Return the subject line of the mail.
*/
- QString mailSubject() const;
+ TQString mailSubject() const;
/**
Attach this filename to the email.
Ignored if the alarm is not an email alarm.
*/
- void setMailAttachment( const QString &mailAttachFile );
+ void setMailAttachment( const TQString &mailAttachFile );
/**
Attach these filenames to the email.
Ignored if the alarm is not an email alarm.
*/
- void setMailAttachments( const QStringList &mailAttachFiles );
+ void setMailAttachments( const TQStringList &mailAttachFiles );
/**
Add this filename to the list of files to attach to the email.
Ignored if the alarm is not an email alarm.
*/
- void addMailAttachment( const QString &mailAttachFile );
+ void addMailAttachment( const TQString &mailAttachFile );
/**
Return the filenames to attach to the email.
*/
- QStringList mailAttachments() const;
+ TQStringList mailAttachments() const;
/**
Set the email body text.
Ignored if the alarm is not an email alarm.
*/
- void setMailText( const QString &text );
+ void setMailText( const TQString &text );
/**
Return the email body text.
- @return the body text, or QString::null if not an email alarm.
+ @return the body text, or TQString::null if not an email alarm.
*/
- QString mailText() const;
+ TQString mailText() const;
/**
Set the time to trigger an alarm.
*/
- void setTime( const QDateTime &alarmTime );
+ void setTime( const TQDateTime &alarmTime );
/**
Return the date/time when an alarm goes off.
*/
- QDateTime time() const;
+ TQDateTime time() const;
/**
Return the date/time when the last repetition of the alarm goes off.
If the alarm does not repeat, this is equivalent to calling time().
*/
- QDateTime endTime() const;
+ TQDateTime endTime() const;
/**
Return true, if the alarm has an explicit date/time.
*/
@@ -295,7 +295,7 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
@return the date and time of the next repetition, or an invalid date/time if
the specified time is at or after the alarm's last repetition.
*/
- QDateTime nextRepetition(const QDateTime& preTime) const;
+ TQDateTime nextRepetition(const TQDateTime& preTime) const;
/**
Get the time of the alarm's latest repetition, or its initial occurrence if
none, before a given time.
@@ -303,7 +303,7 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
@return the date and time of the latest repetition, or an invalid date/time if
the specified time is at or before the alarm's initial occurrence.
*/
- QDateTime previousRepetition(const QDateTime& afterTime) const;
+ TQDateTime previousRepetition(const TQDateTime& afterTime) const;
/**
Get how long between the alarm's initial occurrence and its final repetition.
@return the number of seconds between the initial occurrence and final repetition.
@@ -344,18 +344,18 @@ class LIBKCAL_EXPORT Alarm : public CustomProperties
private:
Incidence *mParent; // the incidence which this alarm belongs to
Type mType; // type of alarm
- QString mDescription; // text to display/email body/procedure arguments
- QString mFile; // procedure program to run/optional audio file to play
- QStringList mMailAttachFiles; // filenames to attach to email
- QValueList<Person> mMailAddresses; // who to mail for reminder
- QString mMailSubject; // subject of email
+ TQString mDescription; // text to display/email body/procedure arguments
+ TQString mFile; // procedure program to run/optional audio file to play
+ TQStringList mMailAttachFiles; // filenames to attach to email
+ TQValueList<Person> mMailAddresses; // who to mail for reminder
+ TQString mMailSubject; // subject of email
int mAlarmSnoozeTime; // number of minutes after alarm to
// snooze before ringing again
int mAlarmRepeatCount; // number of times for alarm to repeat
// after the initial time
- QDateTime mAlarmTime; // time at which to trigger the alarm
+ TQDateTime mAlarmTime; // time at which to trigger the alarm
Duration mOffset; // time relative to incidence DTSTART to trigger the alarm
bool mEndOffset; // if true, mOffset relates to DTEND, not DTSTART
bool mHasTime; // use mAlarmTime, not mOffset