summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am12
-rw-r--r--src/main.cpp28
-rw-r--r--src/tdeio_umountwrapper.cpp (renamed from src/kio_umountwrapper.cpp)28
-rw-r--r--src/tdeio_umountwrapper.h (renamed from src/kio_umountwrapper.h)8
4 files changed, 38 insertions, 38 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 5812439..509c91d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,14 +2,14 @@
INCLUDES = $(all_includes)
# these are the headers for your project
-noinst_HEADERS = kio_umountwrapper.h
+noinst_HEADERS = tdeio_umountwrapper.h
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
messages: rc.cpp
$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
- $(XGETTEXT) *.cpp -o $(podir)/kio_umountwrapper.pot
+ $(XGETTEXT) *.cpp -o $(podir)/tdeio_umountwrapper.pot
KDE_ICON = AUTO
@@ -18,10 +18,10 @@ KDE_ICON = AUTO
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
-bin_PROGRAMS = kio_umountwrapper
+bin_PROGRAMS = tdeio_umountwrapper
# the application source, library search path, and link libraries
-kio_umountwrapper_SOURCES = main.cpp kio_umountwrapper.cpp
-kio_umountwrapper_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -lktexteditor
-kio_umountwrapper_LDADD = $(LIB_TDEUI)
+tdeio_umountwrapper_SOURCES = main.cpp tdeio_umountwrapper.cpp
+tdeio_umountwrapper_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor
+tdeio_umountwrapper_LDADD = $(LIB_TDEUI)
diff --git a/src/main.cpp b/src/main.cpp
index 8c2782f..dec5793 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,10 +19,10 @@
***************************************************************************/
-#include "kio_umountwrapper.h"
-#include <kaboutdata.h>
-#include <kcmdlineargs.h>
-#include <klocale.h>
+#include "tdeio_umountwrapper.h"
+#include <tdeaboutdata.h>
+#include <tdecmdlineargs.h>
+#include <tdelocale.h>
#include <kdebug.h>
@@ -31,28 +31,28 @@ static const char description[] =
static const char version[] = "0.2";
-static KCmdLineOptions options[] =
+static TDECmdLineOptions options[] =
{
{ "+[URL]", I18N_NOOP( "URL to Safely Remove" ), 0 },
- KCmdLineLastOption
+ TDECmdLineLastOption
};
int main(int argc, char **argv)
{
- KAboutData about("kio_umountwrapper", I18N_NOOP("kio_umountwrapper"), version, description,
- KAboutData::License_GPL, "(C) 2007 Frode M. Døving", 0, 0, "[email protected]");
+ TDEAboutData about("tdeio_umountwrapper", I18N_NOOP("tdeio_umountwrapper"), version, description,
+ TDEAboutData::License_GPL, "(C) 2007 Frode M. Døving", 0, 0, "[email protected]");
about.addAuthor( "Frode M. Døving", 0, "[email protected]" );
- KCmdLineArgs::init(argc, argv, &about);
- KCmdLineArgs::addCmdLineOptions( options );
+ TDECmdLineArgs::init(argc, argv, &about);
+ TDECmdLineArgs::addCmdLineOptions( options );
- kio_umountwrapper *app;
+ tdeio_umountwrapper *app;
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
kdDebug() << "arg0: " << args->arg(0) << endl;
if (args->count() == 0)
- KCmdLineArgs::usage(i18n("No URL specified!"));
- else app = new kio_umountwrapper(TQString(args->arg(0)));
+ TDECmdLineArgs::usage(i18n("No URL specified!"));
+ else app = new tdeio_umountwrapper(TQString(args->arg(0)));
args->clear();
diff --git a/src/kio_umountwrapper.cpp b/src/tdeio_umountwrapper.cpp
index 41c7f76..26ab35d 100644
--- a/src/kio_umountwrapper.cpp
+++ b/src/tdeio_umountwrapper.cpp
@@ -19,20 +19,20 @@
***************************************************************************/
-#include "kio_umountwrapper.h"
+#include "tdeio_umountwrapper.h"
#include <cstdlib>
#include <tqtimer.h>
-#include <kapplication.h>
-#include <klocale.h>
+#include <tdeapplication.h>
+#include <tdelocale.h>
#include <kprogress.h>
#include <kprocess.h>
-#include <kcmdlineargs.h>
+#include <tdecmdlineargs.h>
#include <kdebug.h>
-kio_umountwrapper::kio_umountwrapper(const TQString& url)
- : KApplication()
+tdeio_umountwrapper::tdeio_umountwrapper(const TQString& url)
+ : TDEApplication()
{
m_progress = new KProgressDialog();
setMainWidget(m_progress);
@@ -47,22 +47,22 @@ kio_umountwrapper::kio_umountwrapper(const TQString& url)
connect(t, TQT_SIGNAL(timeout()), TQT_SLOT(progressAdvance()));
t->start(10, FALSE);
- KProcess *p = new KProcess(TQT_TQOBJECT(this));
- *p << "kio_media_mounthelper";
+ TDEProcess *p = new TDEProcess(TQT_TQOBJECT(this));
+ *p << "tdeio_media_mounthelper";
*p << "-s";
*p << url;
- kdDebug() << "KProcess: " << url << endl;
- connect(p, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(processFinished(KProcess *)));
+ kdDebug() << "TDEProcess: " << url << endl;
+ connect(p, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(processFinished(TDEProcess *)));
p->start();
}
-void kio_umountwrapper::progressAdvance()
+void tdeio_umountwrapper::progressAdvance()
{
m_progress->progressBar()->advance(1);
}
-void kio_umountwrapper::processFinished(KProcess* p)
+void tdeio_umountwrapper::processFinished(TDEProcess* p)
{
if (p->normalExit() && p->exitStatus() == 0)
{
@@ -74,4 +74,4 @@ void kio_umountwrapper::processFinished(KProcess* p)
}
}
-#include "kio_umountwrapper.moc"
+#include "tdeio_umountwrapper.moc"
diff --git a/src/kio_umountwrapper.h b/src/tdeio_umountwrapper.h
index c790bcd..14cdc24 100644
--- a/src/kio_umountwrapper.h
+++ b/src/tdeio_umountwrapper.h
@@ -26,23 +26,23 @@
#include <config.h>
#endif
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <kprogress.h>
#include <kprocess.h>
-class kio_umountwrapper : public KApplication
+class tdeio_umountwrapper : public TDEApplication
{
Q_OBJECT
public:
- kio_umountwrapper(const TQString&);
+ tdeio_umountwrapper(const TQString&);
private:
KProgressDialog *m_progress;
private slots:
void progressAdvance();
- void processFinished(KProcess* p);
+ void processFinished(TDEProcess* p);
};