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

Nepomuk-Core

Public Member Functions | List of all members
SafeCode Class Reference

#include <safecode.h>

Inheritance diagram for SafeCode:
Inheritance graph
[legend]

Public Member Functions

QString propertyAdderDeclaration (const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
 
QString propertyAdderDefinition (const Property *property, const ResourceClass *resourceClass) const
 
QString propertyGetterDeclaration (const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
 
QString propertyGetterDefinition (const Property *property, const ResourceClass *resourceClass) const
 
QString propertyReversePropertyGetterDeclaration (const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
 
QString propertyReversePropertyGetterDefinition (const Property *property, const ResourceClass *resourceClass) const
 
QString propertySetterDeclaration (const Property *property, const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
 
QString propertySetterDefinition (const Property *property, const ResourceClass *resourceClass) const
 
QString resourceAllResourcesDeclaration (const ResourceClass *resourceClass, const QString &nameSpace=QString()) const
 
QString resourceAllResourcesDefinition (const ResourceClass *resourceClass) const
 
QString resourcePseudoInheritanceDeclaration (const ResourceClass *resourceBaseClass, const ResourceClass *resourceClass, const QString &nameSpace) const
 
QString resourcePseudoInheritanceDefinition (const ResourceClass *resourceBaseClass, const ResourceClass *resourceClass) const
 
- Public Member Functions inherited from AbstractCode
virtual ~AbstractCode ()
 

Detailed Description

Specific code implementation with full checks.

This implementation of the AbstractCode interface returns generated code that uses Nepomuk2::Property to full check syntax and semantic of the data before writing it to the Nepomuk storage.

Definition at line 27 of file safecode.h.

Member Function Documentation

QString SafeCode::propertyAdderDeclaration ( const Property *  property,
const ResourceClass *  resourceClass,
const QString &  nameSpace = QString() 
) const
virtual

Returns the declaration of the property adder method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.
withNamespaceWhether the namespace shall be included or not.

Implements AbstractCode.

Definition at line 47 of file safecode.cpp.

QString SafeCode::propertyAdderDefinition ( const Property *  property,
const ResourceClass *  resourceClass 
) const
virtual

Returns the definition of the property adder method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.

Implements AbstractCode.

Definition at line 157 of file safecode.cpp.

QString SafeCode::propertyGetterDeclaration ( const Property *  property,
const ResourceClass *  resourceClass,
const QString &  nameSpace = QString() 
) const
virtual

Returns the declaration of the property getter method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.
withNamespaceWhether the namespace shall be included or not.

Implements AbstractCode.

Definition at line 37 of file safecode.cpp.

QString SafeCode::propertyGetterDefinition ( const Property *  property,
const ResourceClass *  resourceClass 
) const
virtual

Returns the definition of the property getter method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.

Implements AbstractCode.

Definition at line 119 of file safecode.cpp.

QString SafeCode::propertyReversePropertyGetterDeclaration ( const Property *  property,
const ResourceClass *  resourceClass,
const QString &  nameSpace = QString() 
) const
virtual

Returns the declaration of the property for the reverse property getter method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.
withNamespaceWhether the namespace shall be included or not.

Implements AbstractCode.

Definition at line 56 of file safecode.cpp.

QString SafeCode::propertyReversePropertyGetterDefinition ( const Property *  property,
const ResourceClass *  resourceClass 
) const
virtual

Returns the definition of the property for the reverse property getter method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.

Implements AbstractCode.

Definition at line 183 of file safecode.cpp.

QString SafeCode::propertySetterDeclaration ( const Property *  property,
const ResourceClass *  resourceClass,
const QString &  nameSpace = QString() 
) const
virtual

Returns the declaration of the property setter method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.
withNamespaceWhether the namespace shall be included or not.

Implements AbstractCode.

Definition at line 27 of file safecode.cpp.

QString SafeCode::propertySetterDefinition ( const Property *  property,
const ResourceClass *  resourceClass 
) const
virtual

Returns the definition of the property setter method.

Parameters
propertyThe property to work on.
resourceClassThe resource the property belongs to.

Implements AbstractCode.

Definition at line 83 of file safecode.cpp.

QString SafeCode::resourceAllResourcesDeclaration ( const ResourceClass *  resourceClass,
const QString &  nameSpace = QString() 
) const
virtual

Returns the declaration of the resource method that returns all resources.

Parameters
resourceClassThe resource to work on.
withNamespaceWhether the namespace shall be included or not.

Implements AbstractCode.

Definition at line 67 of file safecode.cpp.

QString SafeCode::resourceAllResourcesDefinition ( const ResourceClass *  resourceClass) const
virtual

Returns the definition of the resource method that returns all resources.

Parameters
resourceClassThe resource to work on.

Implements AbstractCode.

Definition at line 202 of file safecode.cpp.

QString SafeCode::resourcePseudoInheritanceDeclaration ( const ResourceClass *  resourceBaseClass,
const ResourceClass *  resourceClass,
const QString &  nameSpace 
) const
virtual

Returns the declaration of the resource method that provides pseudo inheritance.

Parameters
resourceBaseClassThe resource to work on.
resourceClassThe resource to cast to.
withNamespaceWhether the namespace shall be included or not.

Implements AbstractCode.

Definition at line 75 of file safecode.cpp.

QString SafeCode::resourcePseudoInheritanceDefinition ( const ResourceClass *  resourceBaseClass,
const ResourceClass *  resourceClass 
) const
virtual

Returns the definition of the resource method that provides pseudo inheritance.

Parameters
resourceBaseClassThe resource to work on.
resourceClassThe resource to cast to.

Implements AbstractCode.

Definition at line 219 of file safecode.cpp.


The documentation for this class was generated from the following files:
  • safecode.h
  • safecode.cpp
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