lib

eventscript.cpp
1/***************************************************************************
2 * eventscript.cpp
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#include "eventscript.h"
21//#include "object.h"
22//#include "variant.h"
23//#include "../main/scriptcontainer.h"
24
25using namespace Kross::Api;
26
27EventScript::EventScript(const TQString& name)
28 : Event<EventScript>(name)
29{
30}
31
35
36const TQString EventScript::getClassName() const
37{
38 return "Kross::Api::EventScript";
39}
40
41Object::Ptr EventScript::call(const TQString& name, TDESharedPtr<List> arguments)
42{
43 krossdebug( TQString("EventScript::call() name=%1 arguments=%2").arg(name).arg(arguments->toString()) );
44 //TODO
45 return 0;
46}
47
virtual const TQString getClassName() const
Return the class name.
EventScript(const TQString &name)
Constructor.
virtual ~EventScript()
Destructor.
virtual Object::Ptr call(const TQString &name, TDESharedPtr< List > arguments)
Pass a call to the object and evaluated it recursive down the object-hierachy.
Event(const TQString &name)
Definition event.h:68
TDESharedPtr< Object > Ptr
Shared pointer to implement reference-counting.
Definition object.h:56
The common Kross API used as common codebase.
Definition callable.h:33
KOFFICE_EXPORT void krossdebug(const TQString &s)
Debugging function.