MyBooks
Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
CuteReport::StorageInterface Class Referenceabstract

#include <storageinterface.h>

Inheritance diagram for CuteReport::StorageInterface:
Inheritance graph
[legend]
Collaboration diagram for CuteReport::StorageInterface:
Collaboration graph
[legend]

Signals

void syncFinished (int syncStatus)
 
void syncFinished (int syncStatus)
 
- Signals inherited from CuteReport::ReportPluginInterface
void changed ()
 
void objectNameChanged (QString name)
 
void changed ()
 
void objectNameChanged (QString name)
 

Public Member Functions

 StorageInterface (QObject *parent)
 
virtual ~StorageInterface ()
 
virtual StorageInterfaceclone ()=0
 
virtual CuteReport::StorageHelperInterfacecreateHelper (CuteDesigner::Core *designer)
 
virtual QString urlScheme () const =0
 
virtual QString urlHint (const QString &key)
 
virtual QStringList urlHints ()
 
virtual CuteReport::StorageSyncStatus sync ()
 
virtual CuteReport::StorageSyncStatus interruptSync ()
 
virtual QString localCachedFileName (const QString &url)=0
 
virtual QString normalizedURL (const QString &url)=0
 
virtual bool saveObject (const QString &url, const QByteArray &objectData)=0
 
virtual QByteArray loadObject (const QString &url)=0
 
virtual QList< StorageObjectInfoobjectsList (const QString &url, bool *ok=0)=0
 
virtual QList< StorageObjectInfoobjectsList (const QString &url, const QStringList &nameFilters, QDir::Filters filters, QDir::SortFlags sort, bool *ok=0)=0
 
virtual bool objectExists (const QString &url)=0
 
virtual QString rootUrl ()
 
virtual QString lastError () const =0
 
 StorageInterface (QObject *parent)
 
virtual ~StorageInterface ()
 
virtual StorageInterfaceclone ()=0
 
virtual CuteReport::StorageHelperInterfacecreateHelper (CuteDesigner::Core *designer)
 
virtual QString urlScheme () const =0
 
virtual QString urlHint (const QString &key)
 
virtual QStringList urlHints ()
 
virtual CuteReport::StorageSyncStatus sync ()
 
virtual CuteReport::StorageSyncStatus interruptSync ()
 
virtual QString localCachedFileName (const QString &url)=0
 
virtual QString normalizedURL (const QString &url)=0
 
virtual bool saveObject (const QString &url, const QByteArray &objectData)=0
 
virtual QByteArray loadObject (const QString &url)=0
 
virtual QList< StorageObjectInfoobjectsList (const QString &url, bool *ok=0)=0
 
virtual QList< StorageObjectInfoobjectsList (const QString &url, const QStringList &nameFilters, QDir::Filters filters, QDir::SortFlags sort, bool *ok=0)=0
 
virtual bool objectExists (const QString &url)=0
 
virtual QString rootUrl ()
 
virtual QString lastError () const =0
 
- Public Member Functions inherited from CuteReport::ReportPluginInterface
 ReportPluginInterface (QObject *parent=0)
 
virtual ~ReportPluginInterface ()
 
virtual bool moduleInit ()
 
ModuleFlags moduleFlags () const
 
ReportCorereportCore () const
 
void setReportCore (ReportCore *reportCore)
 
virtual int moduleVersion () const
 
virtual QString moduleShortName () const =0
 
virtual QString suitName () const =0
 
QString moduleFullName () const
 
virtual QString objectNameHint () const
 
virtual QString description ()
 
virtual void setDescription (const QString &text)
 
virtual QStringList extendsModules () const
 
virtual QStringList removesModules () const
 
virtual QList< ModuleInfodependencies () const
 
virtual ThreadingLevel threading ()
 
virtual void setObjectName (const QString &name)
 
 ReportPluginInterface (QObject *parent=0)
 
virtual ~ReportPluginInterface ()
 
virtual bool moduleInit ()
 
ModuleFlags moduleFlags () const
 
ReportCorereportCore () const
 
void setReportCore (ReportCore *reportCore)
 
virtual int moduleVersion () const
 
virtual QString moduleShortName () const =0
 
virtual QString suitName () const =0
 
QString moduleFullName () const
 
virtual QString objectNameHint () const
 
virtual QString description ()
 
virtual void setDescription (const QString &text)
 
virtual QStringList extendsModules () const
 
virtual QStringList removesModules () const
 
virtual QList< ModuleInfodependencies () const
 
virtual ThreadingLevel threading ()
 
virtual void setObjectName (const QString &name)
 

Protected Member Functions

virtual StorageInterfacecreateInstance (QObject *parent=0) const =0
 
 StorageInterface (const StorageInterface &source, QObject *parent=0)
 
virtual StorageInterfacecreateInstance (QObject *parent=0) const =0
 
 StorageInterface (const StorageInterface &source, QObject *parent=0)
 
- Protected Member Functions inherited from CuteReport::ReportPluginInterface
 ReportPluginInterface (const ReportPluginInterface &dd, QObject *parent)
 
 ReportPluginInterface (const ReportPluginInterface &dd, QObject *parent)
 

Friends

class ReportCore
 

Additional Inherited Members

- Public Types inherited from CuteReport::ReportPluginInterface
enum  ThreadingLevel {
  ThreadNo, ThreadNR, ThreadOk, ThreadNo,
  ThreadNR, ThreadOk
}
 
enum  ModuleFlag { Unremovable = 0x01, Unremovable = 0x01 }
 
enum  ThreadingLevel {
  ThreadNo, ThreadNR, ThreadOk, ThreadNo,
  ThreadNR, ThreadOk
}
 
enum  ModuleFlag { Unremovable = 0x01, Unremovable = 0x01 }
 
- Properties inherited from CuteReport::ReportPluginInterface
QString objectName
 workaround for sending signal when objectName property has changed More...
 

Constructor & Destructor Documentation

◆ StorageInterface() [1/4]

CuteReport::StorageInterface::StorageInterface ( QObject *  parent)
inlineexplicit

◆ ~StorageInterface() [1/2]

virtual CuteReport::StorageInterface::~StorageInterface ( )
inlinevirtual

◆ StorageInterface() [2/4]

CuteReport::StorageInterface::StorageInterface ( const StorageInterface source,
QObject *  parent = 0 
)
inlineexplicitprotected

◆ StorageInterface() [3/4]

CuteReport::StorageInterface::StorageInterface ( QObject *  parent)
inlineexplicit

◆ ~StorageInterface() [2/2]

virtual CuteReport::StorageInterface::~StorageInterface ( )
inlinevirtual

◆ StorageInterface() [4/4]

CuteReport::StorageInterface::StorageInterface ( const StorageInterface source,
QObject *  parent = 0 
)
inlineexplicitprotected

Member Function Documentation

◆ clone() [1/2]

virtual StorageInterface* CuteReport::StorageInterface::clone ( )
pure virtual

◆ clone() [2/2]

virtual StorageInterface* CuteReport::StorageInterface::clone ( )
pure virtual

◆ createHelper() [1/2]

virtual CuteReport::StorageHelperInterface* CuteReport::StorageInterface::createHelper ( CuteDesigner::Core *  designer)
inlinevirtual

◆ createHelper() [2/2]

virtual CuteReport::StorageHelperInterface* CuteReport::StorageInterface::createHelper ( CuteDesigner::Core *  designer)
inlinevirtual

◆ createInstance() [1/2]

virtual StorageInterface* CuteReport::StorageInterface::createInstance ( QObject *  parent = 0) const
protectedpure virtual

◆ createInstance() [2/2]

virtual StorageInterface* CuteReport::StorageInterface::createInstance ( QObject *  parent = 0) const
protectedpure virtual

◆ interruptSync() [1/2]

virtual CuteReport::StorageSyncStatus CuteReport::StorageInterface::interruptSync ( )
inlinevirtual

informs module for interrupt current syncing it's not garantied it will be done immediately and still need to wait for syncFinished(SyncStatus) signal

◆ interruptSync() [2/2]

virtual CuteReport::StorageSyncStatus CuteReport::StorageInterface::interruptSync ( )
inlinevirtual

informs module for interrupt current syncing it's not garantied it will be done immediately and still need to wait for syncFinished(SyncStatus) signal

◆ lastError() [1/2]

virtual QString CuteReport::StorageInterface::lastError ( ) const
pure virtual

◆ lastError() [2/2]

virtual QString CuteReport::StorageInterface::lastError ( ) const
pure virtual

◆ loadObject() [1/2]

virtual QByteArray CuteReport::StorageInterface::loadObject ( const QString &  url)
pure virtual

◆ loadObject() [2/2]

virtual QByteArray CuteReport::StorageInterface::loadObject ( const QString &  url)
pure virtual

◆ localCachedFileName() [1/2]

virtual QString CuteReport::StorageInterface::localCachedFileName ( const QString &  url)
pure virtual

◆ localCachedFileName() [2/2]

virtual QString CuteReport::StorageInterface::localCachedFileName ( const QString &  url)
pure virtual

◆ normalizedURL() [1/2]

virtual QString CuteReport::StorageInterface::normalizedURL ( const QString &  url)
pure virtual

◆ normalizedURL() [2/2]

virtual QString CuteReport::StorageInterface::normalizedURL ( const QString &  url)
pure virtual

◆ objectExists() [1/2]

virtual bool CuteReport::StorageInterface::objectExists ( const QString &  url)
pure virtual

◆ objectExists() [2/2]

virtual bool CuteReport::StorageInterface::objectExists ( const QString &  url)
pure virtual

◆ objectsList() [1/4]

virtual QList<StorageObjectInfo> CuteReport::StorageInterface::objectsList ( const QString &  url,
bool *  ok = 0 
)
pure virtual

must return ok false if path doesnt exist

◆ objectsList() [2/4]

virtual QList<StorageObjectInfo> CuteReport::StorageInterface::objectsList ( const QString &  url,
bool *  ok = 0 
)
pure virtual

must return ok false if path doesnt exist

◆ objectsList() [3/4]

virtual QList<StorageObjectInfo> CuteReport::StorageInterface::objectsList ( const QString &  url,
const QStringList &  nameFilters,
QDir::Filters  filters,
QDir::SortFlags  sort,
bool *  ok = 0 
)
pure virtual

◆ objectsList() [4/4]

virtual QList<StorageObjectInfo> CuteReport::StorageInterface::objectsList ( const QString &  url,
const QStringList &  nameFilters,
QDir::Filters  filters,
QDir::SortFlags  sort,
bool *  ok = 0 
)
pure virtual

◆ rootUrl() [1/2]

virtual QString CuteReport::StorageInterface::rootUrl ( )
inlinevirtual

◆ rootUrl() [2/2]

virtual QString CuteReport::StorageInterface::rootUrl ( )
inlinevirtual

◆ saveObject() [1/2]

virtual bool CuteReport::StorageInterface::saveObject ( const QString &  url,
const QByteArray &  objectData 
)
pure virtual

◆ saveObject() [2/2]

virtual bool CuteReport::StorageInterface::saveObject ( const QString &  url,
const QByteArray &  objectData 
)
pure virtual

◆ sync() [1/2]

virtual CuteReport::StorageSyncStatus CuteReport::StorageInterface::sync ( )
inlinevirtual

if module doesn't need time for sync or it isn't threaded it should return SyncSuccessful In case it needs some time for threaded syncing module should return SyncInProgress and when it finished emit signal syncFinished(SyncStatus)

◆ sync() [2/2]

virtual CuteReport::StorageSyncStatus CuteReport::StorageInterface::sync ( )
inlinevirtual

if module doesn't need time for sync or it isn't threaded it should return SyncSuccessful In case it needs some time for threaded syncing module should return SyncInProgress and when it finished emit signal syncFinished(SyncStatus)

◆ syncFinished [1/2]

void CuteReport::StorageInterface::syncFinished ( int  syncStatus)
signal

◆ syncFinished [2/2]

void CuteReport::StorageInterface::syncFinished ( int  syncStatus)
signal

◆ urlHint() [1/2]

virtual QString CuteReport::StorageInterface::urlHint ( const QString &  key)
inlinevirtual

◆ urlHint() [2/2]

virtual QString CuteReport::StorageInterface::urlHint ( const QString &  key)
inlinevirtual

◆ urlHints() [1/2]

virtual QStringList CuteReport::StorageInterface::urlHints ( )
inlinevirtual

◆ urlHints() [2/2]

virtual QStringList CuteReport::StorageInterface::urlHints ( )
inlinevirtual

◆ urlScheme() [1/2]

virtual QString CuteReport::StorageInterface::urlScheme ( ) const
pure virtual

◆ urlScheme() [2/2]

virtual QString CuteReport::StorageInterface::urlScheme ( ) const
pure virtual

Friends And Related Function Documentation

◆ ReportCore

ReportCore
friend

The documentation for this class was generated from the following file: