summaryrefslogtreecommitdiffstats
path: root/kget/main.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 23:21:47 -0600
committerTimothy Pearson <[email protected]>2013-02-01 23:21:47 -0600
commitda47dd9fc60e6e0eecf609fb934eb0e2bd3ef3fb (patch)
treeb42ba87fcdfa425a31e243a62d71e1de248b6ee8 /kget/main.cpp
parent4ed8d784e29102ed1659f4ccf71fcc6fb0dad5c8 (diff)
downloadtdenetwork-da47dd9fc60e6e0eecf609fb934eb0e2bd3ef3fb.tar.gz
tdenetwork-da47dd9fc60e6e0eecf609fb934eb0e2bd3ef3fb.zip
Rename many classes and header files to avoid conflicts with KDE4
Diffstat (limited to 'kget/main.cpp')
-rw-r--r--kget/main.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kget/main.cpp b/kget/main.cpp
index ea6ab350..824bd9e6 100644
--- a/kget/main.cpp
+++ b/kget/main.cpp
@@ -37,7 +37,7 @@
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
-#include "kmainwidget.h"
+#include "tdemainwidget.h"
#include "version.h"
@@ -64,9 +64,9 @@ static void signalHandler(int sigId)
{
fprintf(stderr, "*** KGet got signal %d\n", sigId);
- if (sigId != SIGSEGV && kmain) {
+ if (sigId != SIGSEGV && tdemain) {
fprintf(stderr, "*** KGet saving data\n");
- delete kmain;
+ delete tdemain;
}
// If Kget crashes again below this line we consider the data lost :-|
// Otherwise Kget will end in an infinite loop.
@@ -101,7 +101,7 @@ static void cleanup(void)
class KGetApp : public KUniqueApplication
{
private:
- TDEMainWidget *kmainwidget;
+ TDEMainWidget *tdemainwidget;
public:
KGetApp() : KUniqueApplication()
@@ -110,7 +110,7 @@ public:
sDebugIn << endl;
#endif
- kmainwidget=0;
+ tdemainwidget=0;
#ifdef _DEBUG
sDebugOut << endl;
@@ -122,7 +122,7 @@ public:
#ifdef _DEBUG
sDebugIn << endl;
#endif
- delete kmainwidget;
+ delete tdemainwidget;
#ifdef _DEBUG
sDebugOut << endl;
#endif
@@ -132,26 +132,26 @@ public:
int newInstance()
{
#ifdef _DEBUG
- sDebugIn <<"kmainwidget="<<kmainwidget << endl;
+ sDebugIn <<"tdemainwidget="<<tdemainwidget << endl;
#endif
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
- if (kmainwidget==0)
+ if (tdemainwidget==0)
{
if(args->count()>0)
- kmainwidget=new TDEMainWidget(true);
+ tdemainwidget=new TDEMainWidget(true);
else
- kmainwidget=new TDEMainWidget();
- setMainWidget(kmain);
+ tdemainwidget=new TDEMainWidget();
+ setMainWidget(tdemain);
}
else
TDEStartupInfo::setNewStartupId( mainWidget(), kapp->startupId());
if (args->isSet("showDropTarget"))
- kmain->activateDropTarget();
+ tdemain->activateDropTarget();
if (args->count()==1)
{
@@ -160,9 +160,9 @@ public:
#endif
TQString txt(args->arg(0));
if ( txt.endsWith( ".kgt" ) )
- kmain->readTransfersEx(KURL::fromPathOrURL( txt ));
+ tdemain->readTransfersEx(KURL::fromPathOrURL( txt ));
else
- kmain->addTransferEx( KURL::fromPathOrURL( txt ),
+ tdemain->addTransferEx( KURL::fromPathOrURL( txt ),
KURL());
}
else if(args->count()>=2)
@@ -175,11 +175,11 @@ public:
// Sometimes valid filenames are not recognised by KURL::isLocalFile(), they are marked as invalid then
if ( args->count()==2 && ( urls.last().isLocalFile() || !urls.last().isValid()))
{
- kmain->addTransferEx( urls.first(), urls.last() );
+ tdemain->addTransferEx( urls.first(), urls.last() );
}
else
{
- kmain->addTransfers( urls, TQString() );
+ tdemain->addTransfers( urls, TQString() );
}
}
args->clear();