summaryrefslogtreecommitdiffstats
path: root/konsolekalendar/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konsolekalendar/main.cpp')
-rw-r--r--konsolekalendar/main.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/konsolekalendar/main.cpp b/konsolekalendar/main.cpp
index 3792d083e..6343144e2 100644
--- a/konsolekalendar/main.cpp
+++ b/konsolekalendar/main.cpp
@@ -57,9 +57,9 @@
#include <libkcal/calendarresources.h>
#include <libkcal/resourcelocal.h>
-#include <qdatetime.h>
-#include <qfile.h>
-#include <qfileinfo.h>
+#include <tqdatetime.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
#include <stdlib.h>
#include <iostream>
@@ -204,12 +204,12 @@ int main( int argc, char *argv[] )
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
// Default values for start date/time (today at 07:00)
- QDate startdate = QDate::currentDate();
- QTime starttime( 7, 0 );
+ TQDate startdate = TQDate::currentDate();
+ TQTime starttime( 7, 0 );
// Default values for end date/time (today at 17:00)
- QDate enddate = QDate::currentDate();
- QTime endtime( 17, 0 );
+ TQDate enddate = TQDate::currentDate();
+ TQTime endtime( 17, 0 );
// Default values for switches
bool view = true;
@@ -220,7 +220,7 @@ int main( int argc, char *argv[] )
bool calendarFile = false;
bool importFile = false;
- QString option;
+ TQString option;
KonsoleKalendarVariables variables;
KonsoleKalendarEpoch epochs;
@@ -472,7 +472,7 @@ int main( int argc, char *argv[] )
<< "(" << option << ")"
<< endl;
- startdate = QDate::fromString( option, Qt::ISODate );
+ startdate = TQDate::fromString( option, Qt::ISODate );
if ( !startdate.isValid() ) {
cout << i18n( "Invalid Start Date Specified: %1" ).
arg( option ).local8Bit()
@@ -497,7 +497,7 @@ int main( int argc, char *argv[] )
<< endl;
if ( option.upper() != "FLOAT" ) {
- starttime = QTime::fromString( option, Qt::ISODate );
+ starttime = TQTime::fromString( option, Qt::ISODate );
if ( !starttime.isValid() ) {
cout << i18n( "Invalid Start Time Specified: %1" ).
arg( option ).local8Bit()
@@ -527,7 +527,7 @@ int main( int argc, char *argv[] )
<< "(" << option << ")"
<< endl;
- enddate = QDate::fromString( option, Qt::ISODate );
+ enddate = TQDate::fromString( option, Qt::ISODate );
if ( !enddate.isValid() ) {
cout << i18n( "Invalid End Date Specified: %1" ).
arg( option ).local8Bit()
@@ -579,7 +579,7 @@ int main( int argc, char *argv[] )
<< endl;
if ( option.upper() != "FLOAT" ) {
- endtime = QTime::fromString( option, Qt::ISODate );
+ endtime = TQTime::fromString( option, Qt::ISODate );
if ( !endtime.isValid() ) {
cout << i18n( "Invalid End Time Specified: %1" ).
arg( option ).local8Bit()
@@ -662,12 +662,12 @@ int main( int argc, char *argv[] )
KURL url = KURL::fromPathOrURL( variables.getCalendarFile() );
if ( url.isLocalFile() ) {
variables.setCalendarFile( url.path() );
- exists = QFile::exists( variables.getCalendarFile() );
+ exists = TQFile::exists( variables.getCalendarFile() );
remote = false;
} else if ( url.protocol().isEmpty() ) {
- QFileInfo info( variables.getCalendarFile() );
+ TQFileInfo info( variables.getCalendarFile() );
variables.setCalendarFile( info.absFilePath() );
- exists = QFile::exists( variables.getCalendarFile() );
+ exists = TQFile::exists( variables.getCalendarFile() );
remote = false;
} else {
exists = true; // really have no idea if the remote file exists
@@ -740,7 +740,7 @@ int main( int argc, char *argv[] )
/***************************************************************************
* Glorious date/time checking and setting code *
***************************************************************************/
- QDateTime startdatetime, enddatetime;
+ TQDateTime startdatetime, enddatetime;
// Handle case with either date or end-date unspecified
if ( !args->isSet( "end-date" ) && !args->isSet( "show-next" ) &&
@@ -768,7 +768,7 @@ int main( int argc, char *argv[] )
<< "setting endtime 1 hour after starttime"
<< endl;
} else if ( args->isSet( "epoch-start" ) ) {
- startdatetime = epochs.epoch2QDateTime( epochstart );
+ startdatetime = epochs.epoch2TQDateTime( epochstart );
enddatetime = startdatetime.addSecs( 60 * 60 );
kdDebug() << "main | datetimestamp | "
<< "setting endtime 1 hour after epochstart"
@@ -786,7 +786,7 @@ int main( int argc, char *argv[] )
<< "setting starttime 1 hour before endtime"
<< endl;
} else if ( args->isSet( "epoch-end" ) ) {
- enddatetime = epochs.epoch2QDateTime( epochend );
+ enddatetime = epochs.epoch2TQDateTime( epochend );
startdatetime = enddatetime.addSecs( -60 * 60 );
kdDebug() << "main | datetimestamp | "
<< "setting starttime 1 before after epochend"
@@ -799,13 +799,13 @@ int main( int argc, char *argv[] )
if ( !args->isSet( "time" ) && !args->isSet( "epoch-start" ) &&
!args->isSet( "end-time" ) && !args->isSet( "epoch-end" ) ) {
// set default start date/time
- startdatetime = QDateTime::QDateTime( startdate, starttime );
+ startdatetime = TQDateTime::TQDateTime( startdate, starttime );
kdDebug() << "main | datetimestamp | "
<< "setting startdatetime from "
<< "default startdate (today) and starttime"
<< endl;
// set default end date/time
- enddatetime = QDateTime::QDateTime( enddate, endtime );
+ enddatetime = TQDateTime::TQDateTime( enddate, endtime );
kdDebug() << "main | datetimestamp | "
<< "setting enddatetime from "
<< "default enddate (today) and endtime"
@@ -814,13 +814,13 @@ int main( int argc, char *argv[] )
// Set startdatetime, enddatetime if still necessary
if ( startdatetime.isNull() ) {
- startdatetime = QDateTime::QDateTime( startdate, starttime );
+ startdatetime = TQDateTime::TQDateTime( startdate, starttime );
kdDebug() << "main | datetimestamp | "
<< "setting startdatetime from startdate and starttime"
<< endl;
}
if ( enddatetime.isNull() ) {
- enddatetime = QDateTime::QDateTime( enddate, endtime );
+ enddatetime = TQDateTime::TQDateTime( enddate, endtime );
kdDebug() << "main | datetimestamp | "
<< "setting enddatetime from enddate and endtime"
<< endl;
@@ -892,7 +892,7 @@ int main( int argc, char *argv[] )
* Set our application name for use in unique IDs and error messages,
* and product ID for incidence PRODID property
*/
- QString prodId = "-//K Desktop Environment//NONSGML %1 %2//EN";
+ TQString prodId = "-//K Desktop Environment//NONSGML %1 %2//EN";
CalFormat::setApplication( progDisplay,
prodId.arg( progDisplay ).arg( progVersion ) );