Use dedicated kdDebug area.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 3 years ago
parent b7aec448a1
commit 596d7b2cdc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -40,7 +40,7 @@ AppImpl::AppImpl(TDEIO_AppInfo *slave) : TQObject(), m_slave(slave)
void AppImpl::listRoot() void AppImpl::listRoot()
{ {
kdDebug() << "AppImpl::listRoot" << endl; kdDebug(7129) << "AppImpl::listRoot" << endl;
// Top level entry // Top level entry
TDEIO::UDSEntry entry; TDEIO::UDSEntry entry;
@ -48,7 +48,7 @@ void AppImpl::listRoot()
m_slave->listEntry(entry, false); m_slave->listEntry(entry, false);
TQStringList dirList = TQStringList::split(":", getenv("PATH")); TQStringList dirList = TQStringList::split(":", getenv("PATH"));
kdDebug() << dirList << endl; kdDebug(7129) << dirList << endl;
TQMap<TQString, bool> knownApps; TQMap<TQString, bool> knownApps;
TQValueList<TDEIO::UDSEntry> list; TQValueList<TDEIO::UDSEntry> list;
@ -106,7 +106,7 @@ bool AppImpl::parseURL(const KURL &url, TQString &name, TQString &path) const
bool AppImpl::statByName(const TQString &filename, TDEIO::UDSEntry &entry) bool AppImpl::statByName(const TQString &filename, TDEIO::UDSEntry &entry)
{ {
kdDebug() << "AppImpl::statByName" << endl; kdDebug(7129) << "AppImpl::statByName" << endl;
TQStringList dirList = TQStringList::split(":", getenv("PATH")); TQStringList dirList = TQStringList::split(":", getenv("PATH"));
@ -334,7 +334,7 @@ void AppImpl::createTDEConfigEntry(TQValueList<TDEIO::UDSEntry> &list, const TQS
// Resource file // Resource file
TQString TDEDataDir = locate("config", shortname + "rc"); TQString TDEDataDir = locate("config", shortname + "rc");
kdDebug() << "TDEDataDir: " << TDEDataDir << endl; kdDebug(7129) << "TDEDataDir: " << TDEDataDir << endl;
if (TDEDataDir.isEmpty()) if (TDEDataDir.isEmpty())
{ {
return; return;
@ -376,7 +376,7 @@ void AppImpl::createStandardConfigEntry(TQValueList<TDEIO::UDSEntry> &list, cons
isFolder = true; isFolder = true;
} }
kdDebug() << "createStandardConfigEntry: " << fname << endl; kdDebug(7129) << "createStandardConfigEntry: " << fname << endl;
entry.clear(); entry.clear();
addAtom(entry, TDEIO::UDS_URL, 0, fname); addAtom(entry, TDEIO::UDS_URL, 0, fname);
@ -424,7 +424,7 @@ void AppImpl::createTmpDirEntry(TQValueList<TDEIO::UDSEntry> &list, const TQStri
isFolder = true; isFolder = true;
} }
kdDebug() << "createTmpDirEntry: " << fname << endl; kdDebug(7129) << "createTmpDirEntry: " << fname << endl;
TDEIO::UDSEntry entry; TDEIO::UDSEntry entry;
addAtom(entry, TDEIO::UDS_URL, 0, fname); addAtom(entry, TDEIO::UDS_URL, 0, fname);
@ -467,7 +467,7 @@ void AppImpl::createXDGDirEntry(TQValueList<TDEIO::UDSEntry> &list, const TQStri
isFolder = true; isFolder = true;
} }
kdDebug() << "createXdgDirEntry: " << filename << endl; kdDebug(7129) << "createXdgDirEntry: " << filename << endl;
TDEIO::UDSEntry entry; TDEIO::UDSEntry entry;
addAtom(entry, TDEIO::UDS_URL, 0, filename); addAtom(entry, TDEIO::UDS_URL, 0, filename);
@ -491,7 +491,7 @@ void AppImpl::createXDGDirEntry(TQValueList<TDEIO::UDSEntry> &list, const TQStri
bool AppImpl::listAppContents(const TQString &name, TQValueList<TDEIO::UDSEntry> &list) bool AppImpl::listAppContents(const TQString &name, TQValueList<TDEIO::UDSEntry> &list)
{ {
kdDebug() << "AppImpl::listAppContents" << endl; kdDebug(7129) << "AppImpl::listAppContents" << endl;
// Create entry for binary file // Create entry for binary file
createExeEntry(list, name, getAppAddress(name)); createExeEntry(list, name, getAppAddress(name));

@ -34,11 +34,11 @@ extern "C"
{ {
int kdemain(int argc, char **argv) int kdemain(int argc, char **argv)
{ {
kdDebug(7101) << "*** Starting tdeio_appinfo " << endl; kdDebug(7129) << "*** Starting tdeio_appinfo " << endl;
if (argc != 4) if (argc != 4)
{ {
kdDebug(7101) << "Usage: tdeio_appinfo protocol domain-socket1 domain-socket2" << endl; kdDebug(7129) << "Usage: tdeio_appinfo protocol domain-socket1 domain-socket2" << endl;
exit(255); exit(255);
} }
@ -53,24 +53,24 @@ extern "C"
TDEIO_AppInfo::TDEIO_AppInfo(const TQCString &pool_socket, const TQCString &app_socket) TDEIO_AppInfo::TDEIO_AppInfo(const TQCString &pool_socket, const TQCString &app_socket)
: SlaveBase("tdeio_appinfo", pool_socket, app_socket), m_impl(this) : SlaveBase("tdeio_appinfo", pool_socket, app_socket), m_impl(this)
{ {
kdDebug() << "TDEIO_AppInfo::TDEIO_AppInfo()" << endl; kdDebug(7129) << "TDEIO_AppInfo::TDEIO_AppInfo()" << endl;
} }
TDEIO_AppInfo::~TDEIO_AppInfo() TDEIO_AppInfo::~TDEIO_AppInfo()
{ {
kdDebug() << "TDEIO_AppInfo::~TDEIO_AppInfo()" << endl; kdDebug(7129) << "TDEIO_AppInfo::~TDEIO_AppInfo()" << endl;
} }
void TDEIO_AppInfo::stat(const KURL &url) void TDEIO_AppInfo::stat(const KURL &url)
{ {
kdDebug() << "TDEIO_AppInfo::stat: " << url << endl; kdDebug(7129) << "TDEIO_AppInfo::stat: " << url << endl;
TQString path = url.path(); TQString path = url.path();
if (path.isEmpty() || path == "/") if (path.isEmpty() || path == "/")
{ {
kdDebug() << "TDEIO_AppInfo::stat: " << "creating top level entry" << endl; kdDebug(7129) << "TDEIO_AppInfo::stat: " << "creating top level entry" << endl;
// The root is "virtual" - it's not a single physical directory // The root is "virtual" - it's not a single physical directory
TDEIO::UDSEntry entry; TDEIO::UDSEntry entry;
m_impl.createTopLevelEntry(entry); m_impl.createTopLevelEntry(entry);
@ -83,14 +83,14 @@ void TDEIO_AppInfo::stat(const KURL &url)
bool ok = m_impl.parseURL(url, name, path); bool ok = m_impl.parseURL(url, name, path);
if (!ok) if (!ok)
{ {
kdDebug() << "TDEIO_AppInfo::stat: " << "can't parse url" << endl; kdDebug(7129) << "TDEIO_AppInfo::stat: " << "can't parse url" << endl;
error(TDEIO::ERR_MALFORMED_URL, url.prettyURL()); error(TDEIO::ERR_MALFORMED_URL, url.prettyURL());
return; return;
} }
if (path.isEmpty()) if (path.isEmpty())
{ {
kdDebug() << "TDEIO_AppInfo::stat: " << "url empty after parsing" << endl; kdDebug(7129) << "TDEIO_AppInfo::stat: " << "url empty after parsing" << endl;
TDEIO::UDSEntry entry; TDEIO::UDSEntry entry;
if (m_impl.statByName(name, entry)) if (m_impl.statByName(name, entry))
@ -105,18 +105,18 @@ void TDEIO_AppInfo::stat(const KURL &url)
} }
else else
{ {
kdDebug() << "TDEIO_AppInfo::stat: " << "url not empty after parsing: statting" << endl; kdDebug(7129) << "TDEIO_AppInfo::stat: " << "url not empty after parsing: statting" << endl;
SlaveBase::stat(url); SlaveBase::stat(url);
} }
} }
void TDEIO_AppInfo::listDir(const KURL &url) void TDEIO_AppInfo::listDir(const KURL &url)
{ {
kdDebug() << "TDEIO_AppInfo::listDir: " << url << endl; kdDebug(7129) << "TDEIO_AppInfo::listDir: " << url << endl;
if (url.path().length() <= 1) if (url.path().length() <= 1)
{ {
kdDebug() << "TDEIO_AppInfo::listDir: " << "url empty: listing root" << endl; kdDebug(7129) << "TDEIO_AppInfo::listDir: " << "url empty: listing root" << endl;
listRoot(); listRoot();
return; return;
} }
@ -129,8 +129,8 @@ void TDEIO_AppInfo::listDir(const KURL &url)
return; return;
} }
kdDebug() << "TDEIO_AppInfo::listDir: " << "name is " << name << endl; kdDebug(7129) << "TDEIO_AppInfo::listDir: " << "name is " << name << endl;
kdDebug() << "TDEIO_AppInfo::listDir: " << "path is " << path << endl; kdDebug(7129) << "TDEIO_AppInfo::listDir: " << "path is " << path << endl;
// We've been given something like appinfo:/name // We've been given something like appinfo:/name
listAppContents(name); listAppContents(name);

Loading…
Cancel
Save