summaryrefslogtreecommitdiffstats
path: root/libkcal/resourcelocal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/resourcelocal.cpp')
-rw-r--r--libkcal/resourcelocal.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/libkcal/resourcelocal.cpp b/libkcal/resourcelocal.cpp
index cb61cd1a6..2f10dce4b 100644
--- a/libkcal/resourcelocal.cpp
+++ b/libkcal/resourcelocal.cpp
@@ -23,9 +23,9 @@
#include <typeinfo>
#include <stdlib.h>
-#include <qdatetime.h>
-#include <qstring.h>
-#include <qptrlist.h>
+#include <tqdatetime.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
#include <kdebug.h>
#include <klocale.h>
@@ -53,17 +53,17 @@ using namespace KCal;
class ResourceLocal::Private
{
public:
- QDateTime mLastModified;
+ TQDateTime mLastModified;
};
ResourceLocal::ResourceLocal( const KConfig* config )
: ResourceCached( config ), mLock( 0 )
{
if ( config ) {
- QString url = config->readPathEntry( "CalendarURL" );
+ TQString url = config->readPathEntry( "CalendarURL" );
mURL = KURL( url );
- QString format = config->readEntry( "Format" );
+ TQString format = config->readEntry( "Format" );
if ( format == "ical" )
mFormat = new ICalFormat();
else if ( format == "vcal" )
@@ -78,7 +78,7 @@ ResourceLocal::ResourceLocal( const KConfig* config )
init();
}
-ResourceLocal::ResourceLocal( const QString& fileName )
+ResourceLocal::ResourceLocal( const TQString& fileName )
: ResourceCached( 0 )
{
mURL = KURL( fileName );
@@ -93,7 +93,7 @@ void ResourceLocal::writeConfig( KConfig* config )
ResourceCalendar::writeConfig( config );
config->writePathEntry( "CalendarURL", mURL.prettyURL() );
- QString typeID = typeid( *mFormat ).name();
+ TQString typeID = typeid( *mFormat ).name();
if ( typeid( *mFormat ) == typeid( ICalFormat ) )
config->writeEntry( "Format", "ical" );
@@ -111,12 +111,12 @@ void ResourceLocal::init()
setSavePolicy( SaveDelayed );
- connect( &mDirWatch, SIGNAL( dirty( const QString & ) ),
- SLOT( reload() ) );
- connect( &mDirWatch, SIGNAL( created( const QString & ) ),
- SLOT( reload() ) );
- connect( &mDirWatch, SIGNAL( deleted( const QString & ) ),
- SLOT( reload() ) );
+ connect( &mDirWatch, TQT_SIGNAL( dirty( const TQString & ) ),
+ TQT_SLOT( reload() ) );
+ connect( &mDirWatch, TQT_SIGNAL( created( const TQString & ) ),
+ TQT_SLOT( reload() ) );
+ connect( &mDirWatch, TQT_SIGNAL( deleted( const TQString & ) ),
+ TQT_SLOT( reload() ) );
mLock = new KABC::Lock( mURL.path() );
@@ -136,9 +136,9 @@ ResourceLocal::~ResourceLocal()
delete d;
}
-QDateTime ResourceLocal::readLastModified()
+TQDateTime ResourceLocal::readLastModified()
{
- QFileInfo fi( mURL.path() );
+ TQFileInfo fi( mURL.path() );
return fi.lastModified();
}
@@ -200,12 +200,12 @@ void ResourceLocal::dump() const
kdDebug(5800) << " Url: " << mURL.url() << endl;
}
-QString ResourceLocal::fileName() const
+TQString ResourceLocal::fileName() const
{
return mURL.path();
}
-bool ResourceLocal::setFileName( const QString &fileName )
+bool ResourceLocal::setFileName( const TQString &fileName )
{
bool open = isOpen();
if ( open ) close();
@@ -219,7 +219,7 @@ bool ResourceLocal::setFileName( const QString &fileName )
return true;
}
-bool ResourceLocal::setValue( const QString &key, const QString &value )
+bool ResourceLocal::setValue( const TQString &key, const TQString &value )
{
if ( key == "File" ) {
return setFileName( value );