KIO
krecentdocument.cpp
Go to the documentation of this file.
96 if ( url.isLocalFile() && KGlobal::dirs()->relativeLocation( "tmp", url.toLocalFile() ) != url.toLocalFile() )
100 openStr.replace( QRegExp("\\$"), "$$" ); // Desktop files with type "Link" are $-variable expanded
136 const QStringList list = dir.entryList(QDir::Files | QDir::Hidden, QFlags<QDir::SortFlag>(QDir::Time | QDir::Reversed));
QString readPathEntry(const QString &pKey, const QString &aDefault) const
void writePathEntry(const QString &pKey, const QString &path, WriteConfigFlags pFlags=Normal)
static QStringList recentDocuments()
Return a list of absolute paths to recent document .desktop files, sorted by date.
Definition: krecentdocument.cpp:54
bool remove()
KStandardDirs * dirs()
bool remove(const QString &fileName)
KConfigGroup group(const QByteArray &group)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
bool exists() const
static void add(const KUrl &url)
Add a new item to the Recent Document menu.
Definition: krecentdocument.cpp:88
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
KSharedConfigPtr config()
void setPath(const QString &path)
static QString recentDocumentDirectory()
Returns the path to the directory where recent document .desktop files are stored.
Definition: krecentdocument.cpp:48
int count(const T &value) const
bool exists() const
void append(const T &value)
bool isEmpty() const
QString relativeLocation(const char *type, const QString &absPath)
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
iterator end()
QString & replace(int position, int n, QChar after)
QString dir(const QString &fileClass)
Returns the most recently used directory accociated with this file-class.
Definition: krecentdirs.cpp:68
QString fileName(const DirectoryOptions &options=IgnoreTrailingSlash) const
QString absolutePath() const
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
bool mkdir(const QString &dirName) const
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
typedef ConstIterator
QString absoluteFilePath(const QString &fileName) const
const KComponentData & mainComponent()
QString fromLatin1(const char *str, int size)
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
static void clear()
Clear the recent document menu of all entries.
Definition: krecentdocument.cpp:169
bool isLocalFile() const
static int maximumItems()
Returns the maximum amount of recent document entries allowed.
Definition: krecentdocument.cpp:177
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
int utime(const QString &filename, struct utimbuf *buf)
T readEntry(const QString &key, const T &aDefault) const
KConfigGroup desktopGroup() const
iterator begin()
QStringList list(const QString &fileClass)
Returns a list of directories associated with this file-class.
Definition: krecentdirs.cpp:60
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.