![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Special registry loader supporting of loading layout data. More...
#include <CRegistrySerializerComp.h>
Public Types | |
enum | MessageId { MI_LOAD_ERROR = 680 , MI_CANNOT_READ_LAYOUT } |
typedef ilog::CLoggerComponentBase | BaseClass |
![]() | |
enum | MessageId { MI_BAD_DEPENDENCY = 0x8a340 } |
typedef Base | BaseClass |
typedef ilog::CLoggerBase | BaseClass2 |
![]() | |
enum | ErrorType { ET_NO_WRITE_PERMISSIONS , ET_NO_READ_PERMISSIONS , ET_FILE_NOT_EXIST } |
Possible file I/O errors. More... | |
enum | MessageId { MI_BAD_OBJECT_TYPE = 0xabf0 , MI_CANNOT_LOAD , MI_CANNOT_SAVE , MI_BAD_EXTENSION , MI_FILE_NOT_EXIST , MI_UNSUPPORTED_VERSION } |
List of possible message IDs used in context of this interface. More... | |
![]() | |
enum | QueryFlags { QF_LOAD = 1 << 0 , QF_SAVE = 1 << 1 , QF_FILE = 1 << 2 , QF_DIRECTORY = 1 << 3 , QF_ANONYMOUS = 1 << 4 } |
Describe detailed options of query. More... | |
Public Member Functions | |
bool | IsOperationSupported (const istd::IChangeable *dataObjectPtr, const QString *filePathPtr, int flags, bool beQuiet) const override |
Returns true if object dataObject can be loaded/saved. | |
iproc::CTaskState | LoadFromFile (istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const override |
This function loads data data from file filePath . | |
iproc::CTaskState | SaveToFile (const istd::IChangeable &data, const QString &filePath=QString(), iproc::IProgressManager *progressManagerPtr=nullptr) const override |
This function saves data data to file filePath . | |
bool | GetFileExtensions (QStringList &result, const istd::IChangeable *dataObjectPtr=nullptr, int flags=-1, bool doAppend=false) const override |
Get file extensions supported by this loader. | |
QString | GetTypeDescription (const QString *extensionPtr=nullptr) const override |
Get description of object type associated with single extension. | |
![]() | |
CLoggerBase () | |
const QByteArray & | GetVerboseSenderId () const |
Get sender ID for verbose messages. | |
void | SetVerboseSenderId (const QByteArray &id) |
Set sender ID for verbose messages. | |
void | SetLogPtr (ilog::IMessageConsumer *logPtr) override |
Install log. | |
ilog::IMessageConsumer * | GetLogPtr () const override |
Get log. | |
![]() | |
![]() | |
![]() |
Protected Member Functions | |
QString | GetLayoutPath (const QString ®istryPath) const |
![]() | |
virtual void | DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override |
Decorate message parts before outputting. | |
void | OnComponentCreated () override |
void | OnComponentDestroyed () override |
![]() | |
bool | IsVerboseEnabled () const |
Check if verbose messages are enabled. | |
bool | SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const |
Send verbose message. | |
bool | SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send info message to log. | |
bool | SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send warning message to log. | |
bool | SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send error message to log. | |
bool | SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send critical message to log. | |
bool | SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once info message to log. | |
bool | SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once warning message to log. | |
bool | SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once error message to log. | |
bool | SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
Send once critical message to log. | |
bool | SendUserMessage (const istd::IInformationProvider *messagePtr) const |
Send message with user object. | |
bool | AllowMessageOnceAgain (int id) |
Reset message lock. | |
bool | IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override |
Check if any log message is consumed. | |
bool | SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override |
Send any message to log. | |
![]() |
Additional Inherited Members | |
![]() | |
QSet< int > | m_onceMessageIds |
Special registry loader supporting of loading layout data.
Definition at line 24 of file CRegistrySerializerComp.h.
Definition at line 32 of file CRegistrySerializerComp.h.
Enumerator | |
---|---|
MI_LOAD_ERROR | |
MI_CANNOT_READ_LAYOUT |
Definition at line 40 of file CRegistrySerializerComp.h.
|
overridevirtual |
Get file extensions supported by this loader.
result | list of extensions, e.g. {"txt", "doc"}. |
dataObjectPtr | optional pointer to data object for which all possible extensions are requested. It can be nullptr if any object is meant. |
flags | set of flags |
doAppend | if true, list of extensions should be appended to existing list. |
Implements ifile::IFileTypeInfo.
|
protected |
|
overridevirtual |
Get description of object type associated with single extension.
Implements ifile::IFileTypeInfo.
|
overridevirtual |
Returns true
if object dataObject
can be loaded/saved.
dataObjectPtr | optional pointer to data object should be loaded/stored. It can be nullptr if any object is meant. |
filePathPtr | optional pointer to file should be loaded/stored. It can be nullptr if any file is meant. If it points at empty string, anonymous loading is mean. |
flags | combination of flags defined in QueryFlags and ifile::IFileTypeInfo::QueryFlags . |
beQuiet | if true, no user message output is allowed. |
Implements ifile::IFilePersistence.
|
overridevirtual |
This function loads data data
from file filePath
.
Implements ifile::IFilePersistence.
|
overridevirtual |
This function saves data data
to file filePath
.
Implements ifile::IFilePersistence.
© Witold Gantzke and Kirill Lepskiy