Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 FLModulesStaticLoader_p.h 00003 ------------------- 00004 begin : 08/01/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef FLMODULESSTATICLOADER_P_H_ 00020 #define FLMODULESSTATICLOADER_P_H_ 00021 00022 class FLManagerModules; 00023 class FLStaticLoaderWarning; 00024 00025 struct AQStaticDirInfo { 00026 inline AQStaticDirInfo(const QString &entry); 00027 inline AQStaticDirInfo(uint active, const QString &path); 00028 uint active_: 1; 00029 QString path_; 00030 }; 00031 00032 struct AQStaticBdInfo { 00033 inline AQStaticBdInfo(const QString &bd) : 00034 bd_(bd) { 00035 readSettings(); 00036 } 00037 00038 AQStaticDirInfo *findPath(const QString &path); 00039 void readSettings(); 00040 void writeSettings(); 00041 00042 bool enabled_; 00043 QString bd_; 00044 QPtrList<AQStaticDirInfo> dirs_; 00045 }; 00046 00047 class FLModulesStaticLoader 00048 { 00049 private: 00050 00051 FLModulesStaticLoader() {} 00052 00053 static void setup(AQStaticBdInfo *b); 00054 static QString content(const QString &n, AQStaticBdInfo *b); 00055 00056 static FLStaticLoaderWarning *warn_; 00057 00058 friend class FLManagerModules; 00059 }; 00060 00061 #endif /* FLMODULESSTATICLOADER_P_H_ */