Vidalia
0.3.1
src
vidalia
plugin
prototypes
VidaliaTabPrototype.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 you
4
** did not receive the LICENSE file with this file, you may obtain it from the
5
** 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 VidaliaTabPrototype.h
13
** \brief Prototype for VidaliaTab class
14
*/
15
16
#ifndef VIDALIATABPROT_H
17
#define VIDALIATABPROT_H
18
19
#include <QtGui>
20
#include <QtScript>
21
22
#include "
VidaliaTab.h
"
23
24
class
VidaliaTabPrototype
:
public
QObject,
public
QScriptable
25
{
26
Q_OBJECT
27
28
public
:
29
VidaliaTabPrototype
(QObject *parent = 0);
30
static
QScriptValue
constructor
(QScriptContext *context, QScriptEngine *engine);
31
static
int
metaTypeId
();
32
static
QString
name
();
33
34
Q_INVOKABLE
void
setLayout
(QLayout *layout);
35
Q_INVOKABLE
QVariant
getSetting
(QString
name
,
QVariant
defaultValue);
36
Q_INVOKABLE
void
saveSetting
(QString
name
,
QVariant
value);
37
};
38
39
Q_DECLARE_METATYPE
(
VidaliaTab
*);
40
41
#endif
42
QVariant
stop errmsg QVariant
Definition:
TorControlPrototype.cpp:180
VidaliaTabPrototype::metaTypeId
static int metaTypeId()
Definition:
VidaliaTabPrototype.cpp:39
VidaliaTabPrototype::saveSetting
Q_INVOKABLE void saveSetting(QString name, QVariant value)
Definition:
VidaliaTabPrototype.cpp:69
VidaliaTabPrototype::constructor
static QScriptValue constructor(QScriptContext *context, QScriptEngine *engine)
Definition:
VidaliaTabPrototype.cpp:23
VidaliaTab
Definition:
VidaliaTab.h:23
VidaliaTabPrototype::VidaliaTabPrototype
VidaliaTabPrototype(QObject *parent=0)
Definition:
VidaliaTabPrototype.cpp:18
VidaliaTabPrototype::setLayout
Q_INVOKABLE void setLayout(QLayout *layout)
Definition:
VidaliaTabPrototype.cpp:51
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(VidaliaTab *)
VidaliaTabPrototype::name
static QString name()
Definition:
VidaliaTabPrototype.cpp:45
VidaliaTab.h
VidaliaTabPrototype
Definition:
VidaliaTabPrototype.h:24
VidaliaTabPrototype::getSetting
Q_INVOKABLE QVariant getSetting(QString name, QVariant defaultValue)
Definition:
VidaliaTabPrototype.cpp:60
Generated by
1.8.17