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

Nepomuk-Core

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk-core
  • rcgen
safecode.h
Go to the documentation of this file.
1 /*
2  *
3  * $Id: sourceheader 511311 2006-02-19 14:51:05Z trueg $
4  *
5  * This file is part of the Nepomuk KDE project.
6  * Copyright (C) 2006-2007 Sebastian Trueg <trueg@kde.org>
7  *
8  * This library is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  * See the file "COPYING.LIB" for the exact licensing terms.
13  */
14 
15 #ifndef _NEPOMUK_SAFECODE_H_
16 #define _NEPOMUK_SAFECODE_H_
17 
18 #include "abstractcode.h"
19 
27 class SafeCode : public AbstractCode
28 {
29  public:
30  QString propertySetterDeclaration( const Property *property,
31  const ResourceClass* resourceClass,
32  const QString &nameSpace = QString() ) const;
33 
34  QString propertyGetterDeclaration( const Property *property,
35  const ResourceClass* resourceClass,
36  const QString &nameSpace = QString() ) const;
37 
38  QString propertyAdderDeclaration( const Property *property,
39  const ResourceClass* resourceClass,
40  const QString &nameSpace = QString() ) const;
41 
42  QString propertyReversePropertyGetterDeclaration( const Property *property,
43  const ResourceClass* resourceClass,
44  const QString &nameSpace = QString() ) const;
45 
46  QString resourceAllResourcesDeclaration( const ResourceClass* resourceClass,
47  const QString &nameSpace = QString() ) const;
48 
49  QString resourcePseudoInheritanceDeclaration( const ResourceClass* resourceBaseClass,
50  const ResourceClass* resourceClass,
51  const QString &nameSpace ) const;
52 
53  QString propertySetterDefinition( const Property *property, const ResourceClass* resourceClass ) const;
54  QString propertyGetterDefinition( const Property *property, const ResourceClass* resourceClass ) const;
55  QString propertyAdderDefinition( const Property *property, const ResourceClass* resourceClass ) const;
56  QString propertyReversePropertyGetterDefinition( const Property *property,
57  const ResourceClass* resourceClass ) const;
58 
59  QString resourceAllResourcesDefinition( const ResourceClass* resourceClass ) const;
60  QString resourcePseudoInheritanceDefinition( const ResourceClass* resourceBaseClass,
61  const ResourceClass* resourceClass ) const;
62 };
63 
64 #endif
SafeCode::propertyAdderDeclaration
QString propertyAdderDeclaration(const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
Returns the declaration of the property adder method.
Definition: safecode.cpp:47
SafeCode::resourceAllResourcesDefinition
QString resourceAllResourcesDefinition(const ResourceClass *resourceClass) const
Returns the definition of the resource method that returns all resources.
Definition: safecode.cpp:202
SafeCode::propertyReversePropertyGetterDeclaration
QString propertyReversePropertyGetterDeclaration(const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
Returns the declaration of the property for the reverse property getter method.
Definition: safecode.cpp:56
SafeCode
Specific code implementation with full checks.
Definition: safecode.h:27
SafeCode::propertyAdderDefinition
QString propertyAdderDefinition(const Property *property, const ResourceClass *resourceClass) const
Returns the definition of the property adder method.
Definition: safecode.cpp:157
SafeCode::propertySetterDeclaration
QString propertySetterDeclaration(const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
Returns the declaration of the property setter method.
Definition: safecode.cpp:27
ResourceClass
Represents a resource.
Definition: resourceclass.h:30
SafeCode::resourcePseudoInheritanceDefinition
QString resourcePseudoInheritanceDefinition(const ResourceClass *resourceBaseClass, const ResourceClass *resourceClass) const
Returns the definition of the resource method that provides pseudo inheritance.
Definition: safecode.cpp:219
SafeCode::propertyReversePropertyGetterDefinition
QString propertyReversePropertyGetterDefinition(const Property *property, const ResourceClass *resourceClass) const
Returns the definition of the property for the reverse property getter method.
Definition: safecode.cpp:183
abstractcode.h
SafeCode::propertyGetterDefinition
QString propertyGetterDefinition(const Property *property, const ResourceClass *resourceClass) const
Returns the definition of the property getter method.
Definition: safecode.cpp:119
SafeCode::propertySetterDefinition
QString propertySetterDefinition(const Property *property, const ResourceClass *resourceClass) const
Returns the definition of the property setter method.
Definition: safecode.cpp:83
AbstractCode
A class that encapsulates the definition generation methods.
Definition: abstractcode.h:29
SafeCode::resourceAllResourcesDeclaration
QString resourceAllResourcesDeclaration(const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
Returns the declaration of the resource method that returns all resources.
Definition: safecode.cpp:67
Property
Represents the property of a resource.
Definition: rcgen/property.h:29
SafeCode::resourcePseudoInheritanceDeclaration
QString resourcePseudoInheritanceDeclaration(const ResourceClass *resourceBaseClass, const ResourceClass *resourceClass, const QString &nameSpace) const
Returns the declaration of the resource method that provides pseudo inheritance.
Definition: safecode.cpp:75
SafeCode::propertyGetterDeclaration
QString propertyGetterDeclaration(const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
Returns the declaration of the property getter method.
Definition: safecode.cpp:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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