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
135 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
KStandardDirs * dirs()
KConfigGroup group(const QByteArray &group)
void writeEntry(const QString &key, const QVariant &value, WriteConfigFlags pFlags=Normal)
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) 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
QString relativeLocation(const char *type, const QString &absPath)
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
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
const KComponentData & mainComponent()
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
static void clear()
Clear the recent document menu of all entries.
Definition: krecentdocument.cpp:168
bool isLocalFile() const
static int maximumItems()
Returns the maximum amount of recent document entries allowed.
Definition: krecentdocument.cpp:176
int utime(const QString &filename, struct utimbuf *buf)
T readEntry(const QString &key, const T &aDefault) const
KConfigGroup desktopGroup() const
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.