KIOSlave
#include <cstring>#include <time.h>#include <stdlib.h>#include <zlib.h>#include <QtCore/QDir>#include <QtCore/QString>#include <QtCore/QTime>#include <QtDBus/QtDBus>#include <QtNetwork/QLocalServer>#include <QtNetwork/QLocalSocket>#include <kcmdlineargs.h>#include <kcomponentdata.h>#include <kdatetime.h>#include <kdebug.h>#include <kglobal.h>#include <klocale.h>#include <kprotocolmanager.h>#include <kstandarddirs.h>#include <unistd.h>Go to the source code of this file.
Enumerations | |
| enum | CacheCleanerCommand { InvalidCommand = 0, CreateFileNotificationCommand, UpdateFileCommand } |
| enum | OperationMode { CleanCache = 0, DeleteCache, FileInfo } |
Functions | |
| bool | CacheFileInfoPtrLessThan (const CacheFileInfo *cf1, const CacheFileInfo *cf2) |
| static QString | dateString (qint64 date) |
| static QString | filenameFromUrl (const QByteArray &url) |
| static QString | filePath (const QString &baseName) |
| int | kdemain (int argc, char **argv) |
| uint | qHash (const CacheIndex &ci) |
| static bool | readBinaryHeader (const QByteArray &d, CacheFileInfo *fi) |
| static bool | readCacheFile (const QString &baseName, CacheFileInfo *fi, OperationMode mode) |
| static CacheCleanerCommand | readCommand (const QByteArray &cmd, CacheFileInfo *fi) |
| static bool | readLineChecked (QIODevice *dev, QByteArray *line) |
| static bool | readTextHeader (QFile *file, CacheFileInfo *fi, OperationMode mode) |
| static void | removeOldFiles () |
| static bool | timeSizeFits (qint64 intTime) |
Variables | |
| static const char | appFullName [] = "org.kde.kio_http_cache_cleaner" |
| static const char | appName [] = "kio_http_cache_cleaner" |
| time_t | g_currentDate |
| int | g_maxCacheAge |
| qint64 | g_maxCacheSize |
| static const int | s_hashedUrlBits = 160 |
| static const int | s_hashedUrlBytes = s_hashedUrlBits / 8 |
| static const int | s_hashedUrlNibbles = s_hashedUrlBits / 4 |
| static const char | version [] = "A\n" |
Enumeration Type Documentation
◆ CacheCleanerCommand
| enum CacheCleanerCommand |
| Enumerator | |
|---|---|
| InvalidCommand | |
| CreateFileNotificationCommand | |
| UpdateFileCommand | |
Definition at line 265 of file http_cache_cleaner.cpp.
◆ OperationMode
| enum OperationMode |
| Enumerator | |
|---|---|
| CleanCache | |
| DeleteCache | |
| FileInfo | |
Definition at line 158 of file http_cache_cleaner.cpp.
Function Documentation
◆ CacheFileInfoPtrLessThan()
| bool CacheFileInfoPtrLessThan | ( | const CacheFileInfo * | cf1, |
| const CacheFileInfo * | cf2 | ||
| ) |
Definition at line 153 of file http_cache_cleaner.cpp.
◆ dateString()
|
static |
Definition at line 87 of file http_cache_cleaner.cpp.
◆ filenameFromUrl()
|
static |
Definition at line 201 of file http_cache_cleaner.cpp.
◆ filePath()
|
static |
Definition at line 208 of file http_cache_cleaner.cpp.
◆ kdemain()
| int kdemain | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 728 of file http_cache_cleaner.cpp.
◆ qHash()
| uint qHash | ( | const CacheIndex & | ci | ) |
Definition at line 372 of file http_cache_cleaner.cpp.
◆ readBinaryHeader()
|
static |
Definition at line 171 of file http_cache_cleaner.cpp.
◆ readCacheFile()
|
static |
Definition at line 271 of file http_cache_cleaner.cpp.
◆ readCommand()
|
static |
Definition at line 378 of file http_cache_cleaner.cpp.
◆ readLineChecked()
|
static |
Definition at line 217 of file http_cache_cleaner.cpp.
◆ readTextHeader()
|
static |
Definition at line 229 of file http_cache_cleaner.cpp.
◆ removeOldFiles()
|
static |
Definition at line 607 of file http_cache_cleaner.cpp.
◆ timeSizeFits()
|
static |
Definition at line 164 of file http_cache_cleaner.cpp.
Variable Documentation
◆ appFullName
|
static |
Definition at line 55 of file http_cache_cleaner.cpp.
◆ appName
|
static |
Definition at line 56 of file http_cache_cleaner.cpp.
◆ g_currentDate
| time_t g_currentDate |
Definition at line 51 of file http_cache_cleaner.cpp.
◆ g_maxCacheAge
| int g_maxCacheAge |
Definition at line 52 of file http_cache_cleaner.cpp.
◆ g_maxCacheSize
| qint64 g_maxCacheSize |
Definition at line 53 of file http_cache_cleaner.cpp.
◆ s_hashedUrlBits
|
static |
Definition at line 61 of file http_cache_cleaner.cpp.
◆ s_hashedUrlBytes
|
static |
Definition at line 63 of file http_cache_cleaner.cpp.
◆ s_hashedUrlNibbles
|
static |
Definition at line 62 of file http_cache_cleaner.cpp.
◆ version
|
static |
Definition at line 65 of file http_cache_cleaner.cpp.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jan 18 2020 19:03:43 by doxygen 1.8.15 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.