diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 37333bf25ad9a4c538250f5af2f9f1d666362883 (patch) | |
tree | c45e8df5b9efbffe07eb3d9340df7811c7e16943 /ksysv/IOCore.h | |
download | tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.tar.gz tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksysv/IOCore.h')
-rw-r--r-- | ksysv/IOCore.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/ksysv/IOCore.h b/ksysv/IOCore.h new file mode 100644 index 0000000..37ac4e5 --- /dev/null +++ b/ksysv/IOCore.h @@ -0,0 +1,64 @@ +/*************************************************************************** + ksv::IO.h - description + ------------------- + begin : Sun Oct 3 1999 + copyright : (C) 1997-99 by Peter Putzer + email : putzer@kde.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; version 2. * + * * + ***************************************************************************/ + +#ifndef KSV_IOCORE_H +#define KSV_IOCORE_H + +#include <qdir.h> +#include <qstring.h> + +#include <ktrader.h> +#include <kservice.h> + +template<class T> class QValueList; +class QFileInfo; +class QDataStream; + +class KSVDragList; +class KSVData; + +namespace ksv +{ + namespace IO + { + void removeFile (const QFileInfo& info, QDir& dir, + QString& rich, QString& plain); + + QString relToAbs (const QString& dir, const QString& rel); + + void makeSymlink (const KSVData& data, int runlevel, bool start, + QString& rich, QString& plain); + + void dissectFilename (const QString& file, QString& name, int& nr); + + QString makeRelativePath (const QString& from, const QString& to); + + bool saveConfiguration (QDataStream&, + KSVDragList** start, + KSVDragList** stop); + + bool loadSavedConfiguration (QDataStream&, + QValueList<KSVData>* start, + QValueList<KSVData>* stop); + + KTrader::OfferList servicesForFile (const QString& filename); + KService::Ptr preferredServiceForFile (const QString& filename); + + } // namespace IO +} // namespace ksv + +#endif + |