Commit 2754ffff authored by Simon Persson's avatar Simon Persson

Get rid of runner, don't think it will ever be a very useful concept.

parent d76952ae
......@@ -17,6 +17,5 @@ add_subdirectory(kcm)
add_subdirectory(daemon)
add_subdirectory(icons)
add_subdirectory(po)
#add_subdirectory(runner)
#add_subdirectory(kioslave)
......@@ -9,7 +9,7 @@ msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://kde-apps.org/content/show.php/Kup+Backup+System?"
"content=147465\n"
"POT-Creation-Date: 2013-02-14 11:43+0800\n"
"POT-Creation-Date: 2013-02-19 18:57+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -119,11 +119,11 @@ msgctxt "@title"
msgid "Kup Daemon"
msgstr ""
#: daemon/main.cpp:44 runner/main.cpp:37
#: daemon/main.cpp:44
msgid "Copyright (C) 2011 Simon Persson"
msgstr ""
#: daemon/main.cpp:46 kcm/kupkcm.cpp:51 runner/main.cpp:39
#: daemon/main.cpp:46 kcm/kupkcm.cpp:51
msgid "Simon Persson"
msgstr ""
......@@ -482,17 +482,6 @@ msgstr ""
msgid "backup,recovery,safety"
msgstr ""
#: runner/main.cpp:29
msgid ""
"Kup is a flexible backup solution using the backup storage system 'bup'. "
"This allows it to quickly perform incrementel backups, only saving the parts "
"of files that has actually changed since last backup was taken."
msgstr ""
#: runner/main.cpp:36
msgid "Kup Runner"
msgstr ""
#: settings/backupplan.cpp:37
msgctxt ""
"@label Default name for a new backup plan, %1 is the number of the plan in "
......
......@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: http://kde-apps.org/content/show.php/Kup+Backup+System?"
"content=147465\n"
"POT-Creation-Date: 2013-02-14 11:43+0800\n"
"POT-Creation-Date: 2013-02-19 18:57+0800\n"
"PO-Revision-Date: 2013-02-14 11:50+0800\n"
"Last-Translator: Simon Persson <simonpersson1@gmail.com>\n"
"Language-Team: Swedish <kde-i18n-doc@kde.org>\n"
......@@ -128,11 +128,11 @@ msgctxt "@title"
msgid "Kup Daemon"
msgstr "Kupdemon"
#: daemon/main.cpp:44 runner/main.cpp:37
#: daemon/main.cpp:44
msgid "Copyright (C) 2011 Simon Persson"
msgstr "Kopieringskydd 2011 Simon Persson"
#: daemon/main.cpp:46 kcm/kupkcm.cpp:51 runner/main.cpp:39
#: daemon/main.cpp:46 kcm/kupkcm.cpp:51
msgid "Simon Persson"
msgstr "Simon Persson"
......@@ -503,21 +503,6 @@ msgstr "Konfigurera planer för säkerhetskopiering"
msgid "backup,recovery,safety"
msgstr "säkerhetskopior,återställning,backup"
#: runner/main.cpp:29
msgid ""
"Kup is a flexible backup solution using the backup storage system 'bup'. "
"This allows it to quickly perform incrementel backups, only saving the parts "
"of files that has actually changed since last backup was taken."
msgstr ""
"Kup är en flexibel lösning för säkerhetskopiering som använder programmet "
"'bup' för lagring. Detta ger möjlighet att snabbt ta inkrementella "
"säkerhetskopior, endast de delar av filer som har ändrats sedan förra "
"kopieringen kopieras på nytt."
#: runner/main.cpp:36
msgid "Kup Runner"
msgstr ""
#: settings/backupplan.cpp:37
msgctxt ""
"@label Default name for a new backup plan, %1 is the number of the plan in "
......
include_directories(${KDE4_INCLUDES})
include_directories("../settings")
include_directories("../bup")
set(kuprunner_SRCS
main.cpp
kuprunner.cpp
)
kde4_add_executable(kuprunner ${kuprunner_SRCS})
target_link_libraries(kuprunner
kupsettings
bupinterface
${KDE4_KDEUI_LIBS}
# ${KDE4_KFILE_LIBS}
# ${KDE4_SOLID_LIBS}
#${KDE4_KIO_LIBS}
)
#qt4_add_dbus_adaptor(boombox_SRCS dbus/org.mpris.MediaPlayer2.Player.xml
# mpris2player.h Mpris2Player)
#qt4_add_dbus_interface(boombox_SRCS dbus/org.mpris.MediaPlayer2.Player.xml
# mpris2playerclient)
# add_definitions(${TAGLIB_CFLAGS} ${SQLITE_DEFINITIONS})
########### install files ###############
install(TARGETS kuprunner ${INSTALL_TARGETS_DEFAULT_ARGS})
# install(FILES kupdaemon.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
# install(FILES kupdaemon.notifyrc DESTINATION ${DATA_INSTALL_DIR}/kupdaemon)
#install(FILES org.kde.kup.xml DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dbus-1/interfaces)
/***************************************************************************
* Copyright Simon Persson *
* simonop@spray.se *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kuprunner.h"
#include "kupsettings.h"
#include "backupplan.h"
#include <KLocale>
#include <KStandardAction>
#include <KUniqueApplication>
KupRunner::KupRunner()
{
readSettings();
}
void KupRunner::readSettings() {
mConfig = KSharedConfig::openConfig("kuprc");
mSettings = new KupSettings(mConfig, this);
if(!mSettings->mBackupsEnabled)
kapp->quit();
for(int i = 0; i < mSettings->mNumberOfPlans; ++i) {
// PlanExecutor *lExecutor;
// BackupPlan *lPlan = new BackupPlan(i+1, mConfig, this);
// if(lPlan->mDestinationType == 2)
// lExecutor = new EDExecutor(lPlan, this);
// //... add other types here
// mExecutors.append(lExecutor);
}
}
void KupRunner::requestQuit() {
kapp->quit();
}
/***************************************************************************
* Copyright Simon Persson *
* simonop@spray.se *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef KUPDAEMON_H
#define KUPDAEMON_H
#include <KSharedConfig>
class KupSettings;
class KupRunner : public QObject
{
Q_OBJECT
public:
KupRunner();
public slots:
void readSettings();
void requestQuit();
private:
KSharedConfigPtr mConfig;
KupSettings *mSettings;
};
#endif /*KUPDAEMON_H*/
/***************************************************************************
* Copyright Simon Persson *
* simonop@spray.se *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kuprunner.h"
#include "bupjob.h"
#include <KApplication>
#include <KAboutData>
#include <KCmdLineArgs>
static const char description[] = I18N_NOOP("Kup is a flexible backup solution using the backup storage system 'bup'. "
"This allows it to quickly perform incrementel backups, only saving the "
"parts of files that has actually changed since last backup was taken.");
static const char version[] = "0.1";
int main(int argc, char **argv) {
KAboutData lAbout("kuprunner", "kup", ki18n("Kup Runner"), version, ki18n(description),
KAboutData::License_GPL, ki18n("Copyright (C) 2011 Simon Persson"),
KLocalizedString(), 0, "simonop@spray.se");
lAbout.addAuthor( ki18n("Simon Persson"), KLocalizedString(), "simonop@spray.se" );
KCmdLineArgs::init(argc, argv, &lAbout);
KApplication lApp;
lApp.setQuitOnLastWindowClosed(false);
lApp.disableSessionManagement();
// new KupRunner();
return lApp.exec();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment