summaryrefslogtreecommitdiff
path: root/plugins/SessionLoader
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-03-21 11:01:59 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-03-21 11:01:59 +0100
commite297dbd8052ef4e66f069e2dd1865ae7fa8af28e (patch)
tree342fea0a2f6f33b8b62dad2d1729f8209da1a1ba /plugins/SessionLoader
parent8f9f382e1c97cab2e72e97495650c73ac4b97314 (diff)
Imported Upstream version 0.3.1.0
Diffstat (limited to 'plugins/SessionLoader')
-rw-r--r--plugins/SessionLoader/KDE4/informations.xml6
-rw-r--r--plugins/SessionLoader/KDE4/sessionLoader.cpp19
-rw-r--r--plugins/SessionLoader/KDE4/sessionLoader.h7
-rw-r--r--plugins/SessionLoader/KDE4/sessionLoader.pro1
-rw-r--r--plugins/SessionLoader/Windows/informations.xml4
-rwxr-xr-xplugins/SessionLoader/Windows/sessionLoader.cpp11
-rwxr-xr-xplugins/SessionLoader/Windows/sessionLoader.h8
-rw-r--r--plugins/SessionLoader/Windows/sessionLoader.pro2
8 files changed, 46 insertions, 12 deletions
diff --git a/plugins/SessionLoader/KDE4/informations.xml b/plugins/SessionLoader/KDE4/informations.xml
index 761ba98..cdc5150 100644
--- a/plugins/SessionLoader/KDE4/informations.xml
+++ b/plugins/SessionLoader/KDE4/informations.xml
@@ -12,16 +12,16 @@
<!-- the date-time format should be in timestamps format -->
<pubDate>1287496800</pubDate>
<!-- the architecture code of this plugin, found PlatformMacro.h into ultracopier source -->
- <architecture>linux-x86_64-pc</architecture>
+ <architecture>windows-x86</architecture>
<!-- Detailed description -->
<description xml:lang="en"><![CDATA[Test plugin to show how create SessionLoader plugin]]></description>
<description xml:lang="fr"><![CDATA[Plugin de test pour monter comment créer un plugin SessionLoader]]></description>
<!-- Version of this release of this plugin, need be like that's: A.B.C.D, where A, B, C and D is number -->
- <version>0.3.0.4</version>
+ <version>0.3.1.0</version>
<!-- This internal name should never change, because it is used to detect when a particular plugin is updated. It must comprise only lower case ASCII characters (a-z), numerical digits (0-9), "-", "." or "_", and it must be be unique within the category. And have size lower than 64 char. -->
<name>KDE4</name>
<!-- Dependency checking. This is used to check when a plugin may not be compatible with an updated version of either Ultracopier or another plugin. This example only checks Ultracopier. -->
<dependencies><![CDATA[
- >=ultracopier-0.3.0.4
+ >=ultracopier-0.3.1.0
]]></dependencies>
</package> \ No newline at end of file
diff --git a/plugins/SessionLoader/KDE4/sessionLoader.cpp b/plugins/SessionLoader/KDE4/sessionLoader.cpp
index 99a9f7c..28bdc59 100644
--- a/plugins/SessionLoader/KDE4/sessionLoader.cpp
+++ b/plugins/SessionLoader/KDE4/sessionLoader.cpp
@@ -9,7 +9,7 @@
#include <QDir>
#include "sessionLoader.h"
-void SessionLoaderPlugin::setEnabled(bool newValue)
+void SessionLoader::setEnabled(bool newValue)
{
ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, newValue: "+QString::number(newValue));
QFile link(QDir::homePath()+"/.kde4/Autostart/ultracopier.sh");
@@ -33,14 +33,14 @@ void SessionLoaderPlugin::setEnabled(bool newValue)
}
}
-bool SessionLoaderPlugin::getEnabled()
+bool SessionLoader::getEnabled()
{
ULTRACOPIER_DEBUGCONSOLE(DebugLevel_Notice,"start, return this value: "+QString::number(QFile::exists(QDir::homePath()+"/.kde4/Autostart/ultracopier.sh")));
//return the value into the variable
return QFile::exists(QDir::homePath()+"/.kde4/Autostart/ultracopier.sh");
}
-void SessionLoaderPlugin::setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion)
+void SessionLoader::setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion)
{
Q_UNUSED(options);
Q_UNUSED(writePath);
@@ -48,4 +48,15 @@ void SessionLoaderPlugin::setResources(OptionInterface * options,QString writePa
Q_UNUSED(portableVersion);
}
-Q_EXPORT_PLUGIN2(sessionLoader, SessionLoaderPlugin);
+/// \brief to get the options widget, NULL if not have
+QWidget * SessionLoader::options()
+{
+ return NULL;
+}
+
+/// \brief to reload the translation, because the new language have been loaded
+void SessionLoader::newLanguageLoaded()
+{
+}
+
+Q_EXPORT_PLUGIN2(sessionLoader, SessionLoader);
diff --git a/plugins/SessionLoader/KDE4/sessionLoader.h b/plugins/SessionLoader/KDE4/sessionLoader.h
index ca04fa6..41c4204 100644
--- a/plugins/SessionLoader/KDE4/sessionLoader.h
+++ b/plugins/SessionLoader/KDE4/sessionLoader.h
@@ -12,7 +12,7 @@
#include "../../../interface/PluginInterface_SessionLoader.h"
/// \brief Define the session loader
-class SessionLoaderPlugin : public PluginInterface_SessionLoader
+class SessionLoader : public PluginInterface_SessionLoader
{
Q_OBJECT
Q_INTERFACES(PluginInterface_SessionLoader)
@@ -23,6 +23,11 @@ public:
bool getEnabled();
/// \brief set the resources for the plugins
void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion);
+ /// \brief to get the options widget, NULL if not have
+ QWidget * options();
+public slots:
+ /// \brief to reload the translation, because the new language have been loaded
+ void newLanguageLoaded();
signals:
#ifdef ULTRACOPIER_PLUGIN_DEBUG
/// \brief To debug source
diff --git a/plugins/SessionLoader/KDE4/sessionLoader.pro b/plugins/SessionLoader/KDE4/sessionLoader.pro
index 5351ab1..e036663 100644
--- a/plugins/SessionLoader/KDE4/sessionLoader.pro
+++ b/plugins/SessionLoader/KDE4/sessionLoader.pro
@@ -8,4 +8,3 @@ HEADERS = sessionLoader.h \
../../../interface/PluginInterface_SessionLoader.h
SOURCES = sessionLoader.cpp
TARGET = $$qtLibraryTarget(sessionLoader)
-TRANSLATIONS += Languages/fr/translation.ts
diff --git a/plugins/SessionLoader/Windows/informations.xml b/plugins/SessionLoader/Windows/informations.xml
index 77d268b..5aea44c 100644
--- a/plugins/SessionLoader/Windows/informations.xml
+++ b/plugins/SessionLoader/Windows/informations.xml
@@ -17,11 +17,11 @@
<description xml:lang="en"><![CDATA[This plugin allow Ultracopier to be loaded at the session opening under windows]]></description>
<description xml:lang="fr"><![CDATA[Ce plugin permet de charger Ultracopier à l'ouverture de la sessions sous windows]]></description>
<!-- Version of this release of this plugin, need be like that's: A.B.C.D, where A, B, C and D is number -->
- <version>0.3.0.4</version>
+ <version>0.3.1.0</version>
<!-- This internal name should never change, because it is used to detect when a particular plugin is updated. It must comprise only lower case ASCII characters (a-z), numerical digits (0-9), "-", "." or "_", and it must be be unique within the category. And have size lower than 64 char. -->
<name>Windows</name>
<!-- Dependency checking. This is used to check when a plugin may not be compatible with an updated version of either Ultracopier or another plugin. This example only checks Ultracopier. -->
<dependencies><![CDATA[
- >=ultracopier-0.3.0.4
+ >=ultracopier-0.3.1.0
]]></dependencies>
</package> \ No newline at end of file
diff --git a/plugins/SessionLoader/Windows/sessionLoader.cpp b/plugins/SessionLoader/Windows/sessionLoader.cpp
index 232e41f..8e1595c 100755
--- a/plugins/SessionLoader/Windows/sessionLoader.cpp
+++ b/plugins/SessionLoader/Windows/sessionLoader.cpp
@@ -55,4 +55,15 @@ void SessionLoader::setResources(OptionInterface * options,QString writePath,QSt
Q_UNUSED(portableVersion);
}
+/// \brief to get the options widget, NULL if not have
+QWidget * SessionLoader::options()
+{
+ return NULL;
+}
+
+/// \brief to reload the translation, because the new language have been loaded
+void SessionLoader::newLanguageLoaded()
+{
+}
+
Q_EXPORT_PLUGIN2(sessionLoader, SessionLoader);
diff --git a/plugins/SessionLoader/Windows/sessionLoader.h b/plugins/SessionLoader/Windows/sessionLoader.h
index ca2e9fd..a08ea94 100755
--- a/plugins/SessionLoader/Windows/sessionLoader.h
+++ b/plugins/SessionLoader/Windows/sessionLoader.h
@@ -18,9 +18,17 @@ class SessionLoader : public PluginInterface_SessionLoader
Q_OBJECT
Q_INTERFACES(PluginInterface_SessionLoader)
public:
+ /// \brief to set if it's enabled or not
void setEnabled(bool);
+ /// \brief to get if is enabled
bool getEnabled();
+ /// \brief set the resources for the plugins
void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion);
+ /// \brief to get the options widget, NULL if not have
+ QWidget * options();
+public slots:
+ /// \brief to reload the translation, because the new language have been loaded
+ void newLanguageLoaded();
signals:
#ifdef ULTRACOPIER_PLUGIN_DEBUG
/// \brief To debug source
diff --git a/plugins/SessionLoader/Windows/sessionLoader.pro b/plugins/SessionLoader/Windows/sessionLoader.pro
index 5351ab1..c454601 100644
--- a/plugins/SessionLoader/Windows/sessionLoader.pro
+++ b/plugins/SessionLoader/Windows/sessionLoader.pro
@@ -8,4 +8,4 @@ HEADERS = sessionLoader.h \
../../../interface/PluginInterface_SessionLoader.h
SOURCES = sessionLoader.cpp
TARGET = $$qtLibraryTarget(sessionLoader)
-TRANSLATIONS += Languages/fr/translation.ts
+