Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 FLDiskCache.h 00003 ------------------- 00004 begin : lun ago 02 2004 00005 copyright : (C) 2004-2005 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 FLDISKCACHE_H 00020 #define FLDISKCACHE_H 00021 00022 #include <qstring.h> 00023 #include <qdir.h> 00024 #include <qfile.h> 00025 #include <qtextstream.h> 00026 #include <qstringlist.h> 00027 00028 #define AQ_DISKCACHE_INS FLDiskCache::insert 00029 #define AQ_DISKCACHE_FIND FLDiskCache::find 00030 #define AQ_DISKCACHE_CLR FLDiskCache::clear 00031 #define AQ_DISKCACHE_FILEPATH FLDiskCache::absoluteFilePath 00032 #define AQ_DISKCACHE_DIRPATH FLDiskCache::absoluteDirPath 00033 00034 class FLApplication; 00035 class AQApplication; 00036 00037 class FLDiskCache 00038 { 00039 public: 00040 00050 static bool find(const QString &key, QString &str); 00051 00059 static bool insert(const QString &key, const QString &str); 00060 00064 static void clear(); 00065 00072 static QString absoluteFilePath(const QString &key); 00073 00077 static QString absoluteDirPath; 00078 00079 private: 00080 00081 static void init(FLApplication *app = 0); 00082 friend class FLApplication; 00083 friend class AQApplication; 00084 }; 00085 00086 #endif