summaryrefslogtreecommitdiff
path: root/plugins/SessionLoader/Windows/sessionLoader.h
blob: a08ea9409c6c1ba3d3ccd6fe0112206b1e471c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** \file sessionLoader.h
\brief Define the session loader
\author alpha_one_x86
\version 0.3
\date 2010 */

#ifndef SESSION_LOADER_H
#define SESSION_LOADER_H

#include <QObject>
#include <QApplication>
#include "Environment.h"
#include "../../../interface/PluginInterface_SessionLoader.h"

/// \brief Define the session loader
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
	void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne);
	#endif
};

#endif // SESSION_LOADER_H