KVIrc  4.9.2
DeveloperAPIs
KviKvsAction.h
Go to the documentation of this file.
1 #ifndef _KVI_KVSACTION_H_
2 #define _KVI_KVSACTION_H_
3 //=============================================================================
4 //
5 // File : KviKvsAction.h
6 // Creation date : Sat 04 Dec 2004 04:22:12 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2004-2010 Szymon Stefanek <pragma at kvirc dot net>
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
33 #include "kvi_settings.h"
34 #include "KviAction.h"
35 #include "KviIconManager.h"
36 
37 class KviKvsScript;
38 
44 {
45  Q_OBJECT
46 protected:
47  QString m_szScript;
48 
49 public:
65  QObject * pParent,
66  const QString & szName,
67  const QString & szScriptCode,
68  const QString & szVisibleName,
69  const QString & szDescription,
70  KviActionCategory * pCategory = NULL,
71  const QString & szBigIconId = QString(),
72  const QString & szSmallIconId = QString(),
73  unsigned int uFlags = 0,
74  const QString & szKeySequence = QString());
75 
91  QObject * pParent,
92  const QString & szName,
93  const QString & szScriptCode,
94  const QString & szVisibleName,
95  const QString & szDescription,
96  KviActionCategory * pCategory = NULL,
97  const QString & szBigIconId = QString(),
99  unsigned int uFlags = 0,
100  const QString & szKeySequence = QString());
101 
105  virtual ~KviKvsAction();
106 
107 public:
112  const QString & scriptCode();
113 
118  virtual void activate();
119 };
120 
121 #endif // _KVI_KVSACTION_H_
virtual void activate()
Activates the action.
Definition: KviAction.cpp:593
QString m_szScript
Definition: KviKvsAction.h:47
#define KVIRC_API
Definition: kvi_settings.h:128
char * NULL
Definition: KviIrcNumericCodes.h:391
Holds the categories of an action.
Definition: KviAction.h:54
The KVIrc Script class.
Definition: KviKvsScript.h:59
Defines an action inside KVIrc.
Definition: KviAction.h:100
Icon manager.
SmallIcon
Contains all KVIrc's small icons.
Definition: KviIconManager.h:168
Definition: KviIconManager.h:170
Actions handling.
This file contains compile time settings.
This class handles the actions.
Definition: KviKvsAction.h:43