summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 85fc8fe..a2693d2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -19,8 +19,12 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "tdepowersave.h"
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <tdelocale.h>
@@ -49,7 +53,7 @@ TDECmdLineOptions options[] = { { "force-acpi-check", I18N_NOOP("Force a new che
static const char version[] = "0.7.x (0.7.3)";
bool trace = false;
-extern "C" KDE_EXPORT
+extern "C" TDE_EXPORT
int kdemain(int argc, char **argv)
{
TDEAboutData about("tdepowersave", I18N_NOOP("TDEPowersave"), version, description,
@@ -66,21 +70,20 @@ int kdemain(int argc, char **argv)
about.addCredit("Daniel Gollub", I18N_NOOP("Added basic detailed dialog"), "dgollub@suse.de");
about.addCredit("Michael Biebl", I18N_NOOP("Packaging Debian and Ubuntu"), "biebl@teco.edu");
about.setBugAddress("powersave-users@forge.novell.com");
- about.setHomepage("http://sourceforge.net/projects/powersave");
about.setTranslator("_: NAME OF TRANSLATORS\\nYour names","_: EMAIL OF TRANSLATORS\\nYour emails");
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions (options);
- KUniqueApplication::addCmdLineOptions();
+ TDEUniqueApplication::addCmdLineOptions();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
- if (!KUniqueApplication::start()) {
+ if (!TDEUniqueApplication::start()) {
fprintf(stderr, "TDEPowersave is already running!\n");
exit(0);
}
- KUniqueApplication app;
+ TDEUniqueApplication app;
app.disableSessionManagement();
tdepowersave *mainWin = 0;