lib

eventaction.h
1/***************************************************************************
2 * eventaction.h
3 * This file is part of the KDE project
4 * copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KROSS_API_EVENTACTION_H
21#define KROSS_API_EVENTACTION_H
22
23#include <tqstring.h>
24//#include <tqobject.h>
25#include <tdeaction.h>
26#include <ksharedptr.h>
27
28#include "event.h"
29
30namespace Kross { namespace Api {
31
32 // Forward declarations.
33 class ScriptContainer;
34
40 class EventAction : public Event<EventAction>
41 {
42
43 public:
44
48 typedef TDESharedPtr<EventAction> Ptr;
49
53 EventAction(const TQString& name, TDEAction* action);
54
58 virtual ~EventAction();
59
61 virtual const TQString getClassName() const;
62
64 //virtual Object::Ptr call(const TQString& name, TDESharedPtr<List> arguments);
65
66 private:
67 TDEAction* m_action;
68
73
78
81 };
82
83}}
84
85#endif
86
virtual ~EventAction()
Destructor.
EventAction(const TQString &name, TDEAction *action)
Constructor.
virtual const TQString getClassName() const
TDESharedPtr< EventAction > Ptr
Shared pointer to implement reference-counting.
Definition eventaction.h:48
Event(const TQString &name)
Definition event.h:67
TDESharedPtr< List > Ptr
Shared pointer to implement reference-counting.
Definition list.h:44
TDESharedPtr< Object > Ptr
Shared pointer to implement reference-counting.
Definition object.h:57
The ScriptContainer class is something like a single standalone scriptfile.
The common Kross API used as common codebase.
Definition callable.h:31
The Kross scripting bridge to embed scripting functionality into an application.
Definition callable.h:31