kexi

kexiapppart.cpp
1/***************************************************************************
2 * kexiapppart.cpp
3 * This file is part of the KDE project
4 * copyright (C)2006 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 "kexiapppart.h"
21
22#include "core/kexipart.h"
23#include "core/kexipartitem.h"
24//#include "core/kexiproject.h"
25
26using namespace Kross::KexiApp;
27
28KexiAppPartItem::KexiAppPartItem(KexiPart::Item* item)
29 : Kross::Api::Class<KexiAppPartItem>("KexiAppPartItem")
30{
31 this->addFunction0<Kross::Api::Variant>("identifier", item, &::KexiPart::Item::identifier );
32
33 this->addFunction1<void, Kross::Api::Variant>("setIdentifier", item, &::KexiPart::Item::setIdentifier );
34
35 this->addFunction0<Kross::Api::Variant>("mimeType", item, &::KexiPart::Item::mimeType );
36 this->addFunction1<void, Kross::Api::Variant>("setMimeType", item, &::KexiPart::Item::setMimeType );
37
38 this->addFunction0<Kross::Api::Variant>("name", item, &::KexiPart::Item::name );
39 this->addFunction1<void, Kross::Api::Variant>("setName", item, &::KexiPart::Item::setName );
40
41 this->addFunction0<Kross::Api::Variant>("caption", item, &::KexiPart::Item::caption );
42 this->addFunction1<void, Kross::Api::Variant>("setCaption", item, &::KexiPart::Item::setCaption );
43
44 this->addFunction0<Kross::Api::Variant>("description", item, &::KexiPart::Item::description );
45 this->addFunction1<void, Kross::Api::Variant>("setDescription", item, &::KexiPart::Item::setDescription );
46}
Information about a single object that can be instantiated using Kexi Part.
Class to handle Kexi Part::Item instance.
Definition kexiapppart.h:42
Wrapper around the Kexi-application to access runtime information a running Kexi-application likes to...