• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

rocs/RocsCore

  • sources
  • kde-4.12
  • kdeedu
  • rocs
  • RocsCore
DataStructureBackendInterface.cpp
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2011 Tomaz Canabrava <tomaz.canabrava@gmail.com>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of
8  the License, or (at your option) any later version.
9 
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
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #include "DataStructureBackendInterface.h"
20 #include "DataStructureBackendManager.h"
21 
22 DataStructureBackendInterface::DataStructureBackendInterface(const KComponentData& /*instance*/, QObject* parent)
23  : QObject(parent)
24 {
25 }
26 
27 DataStructureBackendInterface::~DataStructureBackendInterface()
28 {
29 }
30 
31 
32 QLayout * DataStructureBackendInterface::pointerExtraProperties(PointerPtr arg1, QWidget* arg2) const
33 {
34  Q_UNUSED(arg1);
35  Q_UNUSED(arg2);
36  return 0;
37 }
38 
39 QLayout * DataStructureBackendInterface::dataStructureExtraProperties(DataStructurePtr arg1, QWidget* arg2) const
40 {
41  Q_UNUSED(arg1);
42  Q_UNUSED(arg2);
43  return 0;
44 }
45 
46 QLayout * DataStructureBackendInterface::dataExtraProperties(DataPtr arg1, QWidget* arg2) const
47 {
48  Q_UNUSED(arg1);
49  Q_UNUSED(arg2);
50  return 0;
51 }
52 
53 
54 QString DataStructureBackendInterface::name()
55 {
56  if (DataStructureBackendManager::self().backendInfo(this).isValid()) {
57  return DataStructureBackendManager::self().backendInfo(this).name();
58  }
59  return QString();
60 }
61 
62 
63 QString DataStructureBackendInterface::internalName()
64 {
65  KPluginInfo pluginInfo = DataStructureBackendManager::self().backendInfo(this);
66  if (pluginInfo.isValid()) {
67  return pluginInfo.property(QLatin1String("X-Rocs-DataStructureIdentifier")).toString();
68  }
69  return QString();
70 }
DataStructurePtr
boost::shared_ptr< DataStructure > DataStructurePtr
Definition: CoreTypes.h:38
DataStructureBackendInterface::dataStructureExtraProperties
virtual QLayout * dataStructureExtraProperties(DataStructurePtr dataStructure, QWidget *widget) const
Definition: DataStructureBackendInterface.cpp:39
DataStructureBackendInterface::DataStructureBackendInterface
DataStructureBackendInterface(const KComponentData &instance, QObject *parent)
Definition: DataStructureBackendInterface.cpp:22
QObject
DataStructureBackendManager::self
static DataStructureBackendManager & self()
Returns self reference to backend manager.
Definition: DataStructureBackendManager.cpp:233
DataStructureBackendInterface.h
PointerPtr
boost::shared_ptr< Pointer > PointerPtr
Definition: CoreTypes.h:35
DataStructureBackendInterface::name
QString name()
return the translated name to be used in user visible strings
Definition: DataStructureBackendInterface.cpp:54
DataStructureBackendInterface::~DataStructureBackendInterface
virtual ~DataStructureBackendInterface()
Definition: DataStructureBackendInterface.cpp:27
DataStructureBackendInterface::pointerExtraProperties
virtual QLayout * pointerExtraProperties(PointerPtr pointer, QWidget *widget) const
Definition: DataStructureBackendInterface.cpp:32
DataPtr
boost::shared_ptr< Data > DataPtr
Definition: CoreTypes.h:34
DataStructureBackendInterface::internalName
QString internalName()
return the internal name from plugin.
Definition: DataStructureBackendInterface.cpp:63
DataStructureBackendManager.h
DataStructureBackendInterface::dataExtraProperties
virtual QLayout * dataExtraProperties(DataPtr data, QWidget *widget) const
Definition: DataStructureBackendInterface.cpp:46
DataStructureBackendManager::backendInfo
KPluginInfo backendInfo(DataStructureBackendInterface *plugin) const
Returns KPluginInfo object representing the plugin information for plugin.
Definition: DataStructureBackendManager.cpp:265
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/RocsCore

Skip menu "rocs/RocsCore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal