Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* RawTherapee is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
@@ -29,43 +29,48 @@
|
||||
|
||||
class Thumbnail;
|
||||
|
||||
class CacheManager {
|
||||
class CacheManager
|
||||
{
|
||||
|
||||
typedef std::pair<std::string, Thumbnail*> string_thumb_pair;
|
||||
typedef std::map<std::string, Thumbnail*> string_thumb_map;
|
||||
typedef std::pair<std::string, Thumbnail*> string_thumb_pair;
|
||||
typedef std::map<std::string, Thumbnail*> string_thumb_map;
|
||||
|
||||
string_thumb_map openEntries;
|
||||
Glib::ustring baseDir;
|
||||
MyMutex mutex_;
|
||||
string_thumb_map openEntries;
|
||||
Glib::ustring baseDir;
|
||||
MyMutex mutex_;
|
||||
|
||||
void deleteDir (const Glib::ustring& dirName);
|
||||
void deleteDir (const Glib::ustring& dirName);
|
||||
|
||||
CacheManager () {}
|
||||
CacheManager () {}
|
||||
|
||||
public:
|
||||
public:
|
||||
|
||||
static CacheManager* getInstance(void);
|
||||
static CacheManager* getInstance(void);
|
||||
|
||||
void init ();
|
||||
Thumbnail* getEntry (const Glib::ustring& fname);
|
||||
void deleteEntry (const Glib::ustring& fname);
|
||||
void renameEntry (const std::string& oldfilename, const std::string& oldmd5, const std::string& newfilename);
|
||||
void init ();
|
||||
Thumbnail* getEntry (const Glib::ustring& fname);
|
||||
void deleteEntry (const Glib::ustring& fname);
|
||||
void renameEntry (const std::string& oldfilename, const std::string& oldmd5, const std::string& newfilename);
|
||||
|
||||
void closeThumbnail (Thumbnail* t);
|
||||
void closeThumbnail (Thumbnail* t);
|
||||
|
||||
const Glib::ustring& getBaseDir () { MyMutex::MyLock lock(mutex_); return baseDir; }
|
||||
void closeCache ();
|
||||
const Glib::ustring& getBaseDir ()
|
||||
{
|
||||
MyMutex::MyLock lock(mutex_);
|
||||
return baseDir;
|
||||
}
|
||||
void closeCache ();
|
||||
|
||||
static std::string getMD5 (const Glib::ustring& fname);
|
||||
static std::string getMD5 (const Glib::ustring& fname);
|
||||
|
||||
void clearAll ();
|
||||
void clearThumbImages ();
|
||||
void clearProfiles ();
|
||||
void clearFromCache(const Glib::ustring& fname, bool leavenotrace);
|
||||
void clearAll ();
|
||||
void clearThumbImages ();
|
||||
void clearProfiles ();
|
||||
void clearFromCache(const Glib::ustring& fname, bool leavenotrace);
|
||||
|
||||
void applyCacheSizeLimitation ();
|
||||
void applyCacheSizeLimitation ();
|
||||
|
||||
Glib::ustring getCacheFileName (const Glib::ustring& subdir, const Glib::ustring& fname, const Glib::ustring& md5);
|
||||
Glib::ustring getCacheFileName (const Glib::ustring& subdir, const Glib::ustring& fname, const Glib::ustring& md5);
|
||||
};
|
||||
|
||||
#define cacheMgr CacheManager::getInstance()
|
||||
|
Reference in New Issue
Block a user