Vidalia
0.3.1
src
vidalia
plugin
PluginWrapper.h
Go to the documentation of this file.
1
/*
2
** This file is part of Vidalia, and is subject to the license terms in the
3
** LICENSE file, found in the top level directory of this distribution. If
4
** you did not receive the LICENSE file with this file, you may obtain it
5
** from the Vidalia source package distributed by the Vidalia Project at
6
** http://www.torproject.org/projects/vidalia.html. No part of Vidalia,
7
** including this file, may be copied, modified, propagated, or distributed
8
** except according to the terms described in the LICENSE file.
9
*/
10
11
/*
12
** \file PluginWrapper.h
13
** \brief Wrapper for the plugin scripts
14
*/
15
16
#ifndef PLUGINWRAPPER_H
17
#define PLUGINWRAPPER_H
18
19
#include <QtCore>
20
21
#include "
VidaliaTab.h
"
22
23
class
PluginEngine
;
24
25
class
PluginWrapper
:
public
QObject {
26
Q_OBJECT
27
28
public
:
29
PluginWrapper
(
const
QString &info_path,
PluginEngine
*engine, QObject *parent = 0);
30
~PluginWrapper
();
31
32
bool
hasGUI
();
33
bool
isPersistent
();
34
35
QString
name
()
const
;
36
QString
date
()
const
;
37
QString
author
()
const
;
38
QString
nspace
()
const
;
39
QStringList
files
()
const
;
40
41
QAction *
menuAction
();
42
43
signals:
44
void
pluginTab
(
VidaliaTab
*);
45
46
public
slots:
47
void
start
();
48
void
stop
();
49
VidaliaTab
*
buildGUI
();
50
51
private
slots:
52
void
emitPluginTab
();
53
54
protected
:
55
void
processInfo
(
const
QString &path);
56
bool
checkExceptions
();
57
58
PluginEngine
*
_engine
;
59
QString
_name
,
_date
,
_author
;
60
bool
_persistent
,
_gui
;
61
QStringList
_files
;
62
QString
_nspace
;
63
64
QAction *
_action
;
65
};
66
67
#endif
68
PluginWrapper::_gui
bool _gui
Definition:
PluginWrapper.h:60
PluginWrapper::author
QString author() const
Definition:
PluginWrapper.cpp:201
PluginWrapper::_author
QString _author
Definition:
PluginWrapper.h:59
PluginWrapper::_date
QString _date
Definition:
PluginWrapper.h:59
PluginWrapper::_files
QStringList _files
Definition:
PluginWrapper.h:61
PluginWrapper::date
QString date() const
Definition:
PluginWrapper.cpp:195
PluginWrapper::start
void start()
Definition:
PluginWrapper.cpp:119
PluginEngine
Definition:
PluginEngine.h:35
PluginWrapper::files
QStringList files() const
Definition:
PluginWrapper.cpp:213
PluginWrapper::isPersistent
bool isPersistent()
Definition:
PluginWrapper.cpp:181
PluginWrapper::_persistent
bool _persistent
Definition:
PluginWrapper.h:60
PluginWrapper::stop
void stop()
Definition:
PluginWrapper.cpp:127
VidaliaTab
Definition:
VidaliaTab.h:23
PluginWrapper::hasGUI
bool hasGUI()
Definition:
PluginWrapper.cpp:175
PluginWrapper::menuAction
QAction * menuAction()
Definition:
PluginWrapper.cpp:219
PluginWrapper::_engine
PluginEngine * _engine
Definition:
PluginWrapper.h:58
PluginWrapper::emitPluginTab
void emitPluginTab()
Definition:
PluginWrapper.cpp:236
PluginWrapper::_action
QAction * _action
Definition:
PluginWrapper.h:64
VidaliaTab.h
PluginWrapper::processInfo
void processInfo(const QString &path)
Definition:
PluginWrapper.cpp:58
PluginWrapper::pluginTab
void pluginTab(VidaliaTab *)
PluginWrapper::_name
QString _name
Definition:
PluginWrapper.h:59
PluginWrapper::~PluginWrapper
~PluginWrapper()
Definition:
PluginWrapper.cpp:55
PluginWrapper::nspace
QString nspace() const
Definition:
PluginWrapper.cpp:207
PluginWrapper::checkExceptions
bool checkExceptions()
Definition:
PluginWrapper.cpp:154
PluginWrapper::buildGUI
VidaliaTab * buildGUI()
Definition:
PluginWrapper.cpp:135
PluginWrapper::name
QString name() const
Definition:
PluginWrapper.cpp:187
PluginWrapper
Definition:
PluginWrapper.h:25
PluginWrapper::PluginWrapper
PluginWrapper(const QString &info_path, PluginEngine *engine, QObject *parent=0)
Definition:
PluginWrapper.cpp:23
PluginWrapper::_nspace
QString _nspace
Definition:
PluginWrapper.h:62
Generated by
1.8.17