diff options
author | Michele Calgaro <[email protected]> | 2022-05-01 21:52:17 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2022-05-01 21:52:17 +0900 |
commit | 43f6b98c7d792763cce00715765748056049307d (patch) | |
tree | 3ddcb028eac181b9e0f991c7e254001c4cffad64 /src/app.cpp | |
parent | 319caa7a2769db2ba70fdb30ca1d0b78cac9b0ae (diff) | |
download | tdeio-appinfo-43f6b98c7d792763cce00715765748056049307d.tar.gz tdeio-appinfo-43f6b98c7d792763cce00715765748056049307d.zip |
Raw KDE->TDE conversion using tde/scripts/conversions/kde-tde/convert_existing_kde3_app_to_tde.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/app.cpp')
-rw-r--r-- | src/app.cpp | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/app.cpp b/src/app.cpp index 99f570b..ef19b67 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -40,65 +40,65 @@ #include <netinet/in.h> #include <netdb.h> -#include <kapplication.h> +#include <tdeapplication.h> #include <kdebug.h> -#include <kmessagebox.h> +#include <tdemessagebox.h> #include <kinstance.h> -#include <kglobal.h> +#include <tdeglobal.h> #include <kstandarddirs.h> -#include <klocale.h> +#include <tdelocale.h> #include <kurl.h> #include <ksock.h> #include "app.h" -using namespace KIO; +using namespace TDEIO; extern "C" { int kdemain(int argc, char **argv) { - KInstance instance( "kio_app" ); + TDEInstance instance( "tdeio_app" ); - kdDebug(7101) << "*** Starting kio_app " << endl; + kdDebug(7101) << "*** Starting tdeio_app " << endl; if (argc != 4) { - kdDebug(7101) << "Usage: kio_app protocol domain-socket1 domain-socket2" << endl; + kdDebug(7101) << "Usage: tdeio_app protocol domain-socket1 domain-socket2" << endl; exit(-1); } - kio_appProtocol slave(argv[2], argv[3]); + tdeio_appProtocol slave(argv[2], argv[3]); slave.dispatchLoop(); - kdDebug(7101) << "*** kio_app Done" << endl; + kdDebug(7101) << "*** tdeio_app Done" << endl; return 0; } } -kio_appProtocol::kio_appProtocol(const TQCString &pool_socket, const TQCString &app_socket) - : SlaveBase("kio_app", pool_socket, app_socket) +tdeio_appProtocol::tdeio_appProtocol(const TQCString &pool_socket, const TQCString &app_socket) + : SlaveBase("tdeio_app", pool_socket, app_socket) { - kdDebug() << "kio_appProtocol::kio_appProtocol()" << endl; + kdDebug() << "tdeio_appProtocol::tdeio_appProtocol()" << endl; } -kio_appProtocol::~kio_appProtocol() +tdeio_appProtocol::~tdeio_appProtocol() { - kdDebug() << "kio_appProtocol::~kio_appProtocol()" << endl; + kdDebug() << "tdeio_appProtocol::~tdeio_appProtocol()" << endl; } -void kio_appProtocol::stat(const KURL &url) +void tdeio_appProtocol::stat(const KURL &url) { - kdDebug() << "kio_appProtocol::stat: " << url << endl; + kdDebug() << "tdeio_appProtocol::stat: " << url << endl; TQString path = url.path(); if ( path.isEmpty() || path == "/" ) { - kdDebug() << "kio_appProtocol::stat: " << "creating top level entry" << endl; + kdDebug() << "tdeio_appProtocol::stat: " << "creating top level entry" << endl; // The root is "virtual" - it's not a single physical directory - KIO::UDSEntry entry; + TDEIO::UDSEntry entry; m_impl.createTopLevelEntry( entry ); statEntry( entry ); finished(); @@ -110,17 +110,17 @@ void kio_appProtocol::stat(const KURL &url) if ( !ok ) { - kdDebug() << "kio_appProtocol::stat: " << "can't parse url" << endl; - error(KIO::ERR_MALFORMED_URL, url.prettyURL()); + kdDebug() << "tdeio_appProtocol::stat: " << "can't parse url" << endl; + error(TDEIO::ERR_MALFORMED_URL, url.prettyURL()); return; } if( path.isEmpty() ) { - kdDebug() << "kio_appProtocol::stat4: " << "url empty after parsing" << endl; + kdDebug() << "tdeio_appProtocol::stat4: " << "url empty after parsing" << endl; - KIO::UDSEntry entry; + TDEIO::UDSEntry entry; if ( m_impl.statByName(name, entry) ) { @@ -129,23 +129,23 @@ void kio_appProtocol::stat(const KURL &url) } else { - error(KIO::ERR_DOES_NOT_EXIST, url.prettyURL()); + error(TDEIO::ERR_DOES_NOT_EXIST, url.prettyURL()); } } else { - kdDebug() << "kio_appProtocol::stat4: " << "url not empty after parsing: statting" << endl; + kdDebug() << "tdeio_appProtocol::stat4: " << "url not empty after parsing: statting" << endl; SlaveBase::stat(url); } } -void kio_appProtocol::listDir(const KURL &url) +void tdeio_appProtocol::listDir(const KURL &url) { - kdDebug() << "kio_appProtocol::listDir: " << url << endl; + kdDebug() << "tdeio_appProtocol::listDir: " << url << endl; if ( url.path().length() <= 1 ) { - kdDebug() << "kio_appProtocol::listDir: " << "url empty: listing root" << endl; + kdDebug() << "tdeio_appProtocol::listDir: " << "url empty: listing root" << endl; listRoot(); return; } @@ -155,22 +155,22 @@ void kio_appProtocol::listDir(const KURL &url) if ( !ok ) { - error(KIO::ERR_MALFORMED_URL, url.prettyURL()); + error(TDEIO::ERR_MALFORMED_URL, url.prettyURL()); return; } - kdDebug() << "kio_appProtocol::listDir: " << "url is " << url << ": doing a listDir" << endl; - kdDebug() << "kio_appProtocol::listDir: " << "name is " << name << ": doing a listDir" << endl; - kdDebug() << "kio_appProtocol::listDir: " << "path is " << path << ": doing a listDir" << endl; + kdDebug() << "tdeio_appProtocol::listDir: " << "url is " << url << ": doing a listDir" << endl; + kdDebug() << "tdeio_appProtocol::listDir: " << "name is " << name << ": doing a listDir" << endl; + kdDebug() << "tdeio_appProtocol::listDir: " << "path is " << path << ": doing a listDir" << endl; // We've been given something like app:/appname listAppContents(name); } -void kio_appProtocol::listRoot() +void tdeio_appProtocol::listRoot() { - KIO::UDSEntry entry; + TDEIO::UDSEntry entry; - KIO::UDSEntryList system_entries; + TDEIO::UDSEntryList system_entries; bool ok = m_impl.listRoot(system_entries); if (!ok) @@ -184,8 +184,8 @@ void kio_appProtocol::listRoot() m_impl.createTopLevelEntry(entry); listEntry(entry, false); - KIO::UDSEntryListIterator it = system_entries.begin(); - KIO::UDSEntryListIterator end = system_entries.end(); + TDEIO::UDSEntryListIterator it = system_entries.begin(); + TDEIO::UDSEntryListIterator end = system_entries.end(); for(; it!=end; ++it) { @@ -199,11 +199,11 @@ void kio_appProtocol::listRoot() } -void kio_appProtocol::listAppContents(const TQString &name) +void tdeio_appProtocol::listAppContents(const TQString &name) { - KIO::UDSEntry entry; + TDEIO::UDSEntry entry; - KIO::UDSEntryList app_entries; + TDEIO::UDSEntryList app_entries; bool ok = m_impl.listAppContents(name, app_entries); if (!ok) @@ -217,8 +217,8 @@ void kio_appProtocol::listAppContents(const TQString &name) m_impl.createTopLevelEntry(entry); listEntry(entry, false); - KIO::UDSEntryListIterator it = app_entries.begin(); - KIO::UDSEntryListIterator end = app_entries.end(); + TDEIO::UDSEntryListIterator it = app_entries.begin(); + TDEIO::UDSEntryListIterator end = app_entries.end(); for(; it!=end; ++it) { |