summaryrefslogtreecommitdiffstats
path: root/kmobile/kmobiledevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmobile/kmobiledevice.cpp')
-rw-r--r--kmobile/kmobiledevice.cpp78
1 files changed, 39 insertions, 39 deletions
diff --git a/kmobile/kmobiledevice.cpp b/kmobile/kmobiledevice.cpp
index 36c6bacb7..d1e031324 100644
--- a/kmobile/kmobiledevice.cpp
+++ b/kmobile/kmobiledevice.cpp
@@ -60,9 +60,9 @@ KMobileDevice::KMobileDevice(TQObject *obj, const char *name, const TQStringList
// set the config file name
m_configFileName = args[0];
if (m_configFileName.isEmpty())
- m_config = new KConfig();
+ m_config = new TDEConfig();
else
- m_config = new KConfig(m_configFileName);
+ m_config = new TDEConfig(m_configFileName);
PRINT_DEBUG << TQString("name of config file is %1\n").arg(m_configFileName);
}
@@ -178,9 +178,9 @@ const TQString KMobileDevice::nameForCap(int cap) const
}
// returns an error string for the given error code
-TQString KMobileDevice::buildErrorString(KIO::Error err, const TQString &errorText) const
+TQString KMobileDevice::buildErrorString(TDEIO::Error err, const TQString &errorText) const
{
- return KIO::buildErrorString( err, errorText);
+ return TDEIO::buildErrorString( err, errorText);
}
/*
@@ -193,12 +193,12 @@ int KMobileDevice::numAddresses()
int KMobileDevice::readAddress( int, KABC::Addressee & )
{
- return KIO::ERR_UNSUPPORTED_ACTION;
+ return TDEIO::ERR_UNSUPPORTED_ACTION;
}
int KMobileDevice::storeAddress( int, const KABC::Addressee &, bool )
{
- return KIO::ERR_UNSUPPORTED_ACTION;
+ return TDEIO::ERR_UNSUPPORTED_ACTION;
}
/*
@@ -211,12 +211,12 @@ int KMobileDevice::numCalendarEntries()
int KMobileDevice::readCalendarEntry( int, KCal::Event & )
{
- return KIO::ERR_UNSUPPORTED_ACTION;
+ return TDEIO::ERR_UNSUPPORTED_ACTION;
}
int KMobileDevice::storeCalendarEntry( int, const KCal::Event & )
{
- return KIO::ERR_UNSUPPORTED_ACTION;
+ return TDEIO::ERR_UNSUPPORTED_ACTION;
}
/*
@@ -229,12 +229,12 @@ int KMobileDevice::numNotes()
int KMobileDevice::readNote( int, TQString & )
{
- return KIO::ERR_UNSUPPORTED_ACTION;
+ return TDEIO::ERR_UNSUPPORTED_ACTION;
}
int KMobileDevice::storeNote( int, const TQString & )
{
- return KIO::ERR_UNSUPPORTED_ACTION;
+ return TDEIO::ERR_UNSUPPORTED_ACTION;
}
/*
@@ -243,96 +243,96 @@ int KMobileDevice::storeNote( int, const TQString & )
*/
static
-void addAtom(KIO::UDSEntry& entry, unsigned int ID, long l, const TQString& s = TQString())
+void addAtom(TDEIO::UDSEntry& entry, unsigned int ID, long l, const TQString& s = TQString())
{
- KIO::UDSAtom atom;
+ TDEIO::UDSAtom atom;
atom.m_uds = ID;
atom.m_long = l;
atom.m_str = s;
entry.append(atom);
}
-void KMobileDevice::createDirEntry(KIO::UDSEntry& entry, const TQString& name, const TQString& url, const TQString& mime) const
+void KMobileDevice::createDirEntry(TDEIO::UDSEntry& entry, const TQString& name, const TQString& url, const TQString& mime) const
{
entry.clear();
- addAtom(entry, KIO::UDS_NAME, 0, name);
- addAtom(entry, KIO::UDS_FILE_TYPE, S_IFDIR);
- addAtom(entry, KIO::UDS_ACCESS, 0500);
- addAtom(entry, KIO::UDS_MIME_TYPE, 0, mime);
- addAtom(entry, KIO::UDS_URL, 0, url);
+ addAtom(entry, TDEIO::UDS_NAME, 0, name);
+ addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFDIR);
+ addAtom(entry, TDEIO::UDS_ACCESS, 0500);
+ addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, mime);
+ addAtom(entry, TDEIO::UDS_URL, 0, url);
PRINT_DEBUG << TQString("createDirEntry: File: %1 MIME: %2 URL: %3\n").arg(name).arg(mime).arg(url);
-// addAtom(entry, KIO::UDS_SIZE, 0);
- addAtom(entry, KIO::UDS_GUESSED_MIME_TYPE, 0, mime);
+// addAtom(entry, TDEIO::UDS_SIZE, 0);
+ addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, mime);
}
-void KMobileDevice::createFileEntry(KIO::UDSEntry& entry, const TQString& name, const TQString& url, const TQString& mime,
+void KMobileDevice::createFileEntry(TDEIO::UDSEntry& entry, const TQString& name, const TQString& url, const TQString& mime,
const unsigned long size) const
{
entry.clear();
- addAtom(entry, KIO::UDS_NAME, 0, name);
- addAtom(entry, KIO::UDS_FILE_TYPE, S_IFREG);
- addAtom(entry, KIO::UDS_URL, 0, url);
- addAtom(entry, KIO::UDS_ACCESS, 0400);
- addAtom(entry, KIO::UDS_MIME_TYPE, 0, mime);
- if (size) addAtom(entry, KIO::UDS_SIZE, size);
- addAtom(entry, KIO::UDS_GUESSED_MIME_TYPE, 0, mime);
+ addAtom(entry, TDEIO::UDS_NAME, 0, name);
+ addAtom(entry, TDEIO::UDS_FILE_TYPE, S_IFREG);
+ addAtom(entry, TDEIO::UDS_URL, 0, url);
+ addAtom(entry, TDEIO::UDS_ACCESS, 0400);
+ addAtom(entry, TDEIO::UDS_MIME_TYPE, 0, mime);
+ if (size) addAtom(entry, TDEIO::UDS_SIZE, size);
+ addAtom(entry, TDEIO::UDS_GUESSED_MIME_TYPE, 0, mime);
PRINT_DEBUG << TQString("createFileEntry: File: %1, Size: %2, MIME: %3\n").arg(name).arg(size).arg(mime);
}
void KMobileDevice::listDir( const TQString & )
{
- emit error(KIO::ERR_CANNOT_ENTER_DIRECTORY,TQString());
+ emit error(TDEIO::ERR_CANNOT_ENTER_DIRECTORY,TQString());
}
void KMobileDevice::mkdir( const TQString &, int )
{
- emit error(KIO::ERR_COULD_NOT_MKDIR, TQString());
+ emit error(TDEIO::ERR_COULD_NOT_MKDIR, TQString());
}
void KMobileDevice::rename( const TQString &, const TQString &, bool )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::symlink( const TQString &, const TQString &, bool )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::del( const TQString &, bool )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::stat( const TQString & )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::chmod( const TQString &, int )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::get( const TQString & )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::put( const TQString &, int, bool, bool )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::mimetype( const TQString & )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}
void KMobileDevice::special( const TQByteArray & )
{
- emit error(KIO::ERR_UNSUPPORTED_ACTION, TQString());
+ emit error(TDEIO::ERR_UNSUPPORTED_ACTION, TQString());
}