summaryrefslogtreecommitdiffstats
path: root/libkcal/resourcelocal.cpp
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/resourcelocal.cpp
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/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 cb61cd1a..2f10dce4 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 );