summaryrefslogtreecommitdiff
path: root/plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2018-05-29 05:44:34 +0100
committerThomas Preud'homme <robotux@celest.fr>2018-05-29 05:44:34 +0100
commit594fcba67600704bee9115c86e18927b2237b304 (patch)
tree38dc620e6b8e9a76c1953ded39c1dc006a830728 /plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp
parent20062a6a4bc2aec8ada645baa78ff68892ccd154 (diff)
New upstream version 1.4.0.8
Diffstat (limited to 'plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp')
-rw-r--r--plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp b/plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp
deleted file mode 100644
index 8024264..0000000
--- a/plugins-alternative/SessionLoader/KDE4/sessionLoader.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-/** \file session-loader.cpp
-\brief Define the session plugin loader test
-\author alpha_one_x86
-*/
-
-#include <QFile>
-#include <QDir>
-#include <QCoreApplication>
-
-#include "sessionLoader.h"
-void KDESessionLoader::setEnabled(const bool &enabled)
-{
- ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Notice,"start, enabled: "+QString::number(enabled));
- QFile link(QDir::homePath()+"/.kde4/Autostart/ultracopier.sh");
- if(!enabled)
- {
- if(link.exists() && !link.remove())
- ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"unable to remove from the startup: "+link.errorString());
- }
- else
- {
- if(link.open(QIODevice::WriteOnly))
- {
- link.write(QStringLiteral("#!/bin/bash\n").toLocal8Bit());
- link.write(QString(QCoreApplication::applicationFilePath()).toLocal8Bit());
- link.close();
- if(!link.setPermissions(QFile::ExeOwner|QFile::WriteOwner|QFile::ReadOwner))
- ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"unable to set permissions: "+link.errorString());
- }
- else
- ULTRACOPIER_DEBUGCONSOLE(Ultracopier::DebugLevel_Critical,"unable to open in writing the file: "+link.errorString());
- }
-}
-
-bool KDESessionLoader::getEnabled() const
-{
- //return the value into the variable
- return QFile::exists(QDir::homePath()+"/.kde4/Autostart/ultracopier.sh");
-}
-
-void KDESessionLoader::setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,const bool &portableVersion)
-{
- Q_UNUSED(options);
- Q_UNUSED(writePath);
- Q_UNUSED(pluginPath);
- Q_UNUSED(portableVersion);
-}
-
-/// \brief to get the options widget, NULL if not have
-QWidget * KDESessionLoader::options()
-{
- return NULL;
-}
-
-/// \brief to reload the translation, because the new language have been loaded
-void KDESessionLoader::newLanguageLoaded()
-{
-}