File: PluginInterface_SessionLoader.h

package info (click to toggle)
ultracopier 0.3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 6,640 kB
  • ctags: 3,679
  • sloc: cpp: 27,286; ansic: 1,860; xml: 536; makefile: 38
file content (36 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download
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
/** \file PluginInterface_SessionLoader.h
\brief Define the interface of the plugin of type: session loader
\author alpha_one_x86
\version 0.3
\date 2010 */ 

#ifndef PLUGININTERFACE_SESSIONLOADER_H
#define PLUGININTERFACE_SESSIONLOADER_H

#include <QString>

#include "OptionInterface.h"

#include "../StructEnumDefinition.h"

/** \brief To define the interface between Ultracopier and the session loader
 * */
class PluginInterface_SessionLoader : public QObject
{
	public:
		/// \brief set enabled/disabled
		virtual void setEnabled(bool) = 0;
		/// \brief get if is enabled
		virtual bool getEnabled() = 0;
		/// \brief set the resources
		virtual void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion) = 0;
		/// \brief to get the options widget, NULL if not have
		virtual QWidget * options() = 0;
	public slots:
		/// \brief to reload the translation, because the new language have been loaded
		virtual void newLanguageLoaded() = 0;
};

Q_DECLARE_INTERFACE(PluginInterface_SessionLoader,"first-world.info.ultracopier.PluginInterface.SessionLoader/0.3.0.8");

#endif // PLUGININTERFACE_SESSIONLOADER_H