1
/* This file is part of the KDE Project
2
Copyright (c) 2002 Joseph Wenninger <jowenn@kde.org>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16
Boston, MA 02111-1307, USA.
23
#include <kdedmodule.h>
26
#include <qstringlist.h>
41
typedef QMap<QString,specialEntry> EntryMap;
43
class MountWatcherModule : public KDEDModule
48
MountWatcherModule(const QCString &obj);
49
virtual ~MountWatcherModule();
54
QStringList mountList;
55
QStringList completeList;
59
uint mountpointMappingCount();
60
QString mountpoint(int id);
61
QString mountpoint(QString name);
62
QString devicenode(int id);
65
bool mounted(QString name);
66
QStringList basicList();
67
QStringList basicSystemList();
68
QStringList basicDeviceInfo(QString);
69
QStringList basicDeviceInfoForMountPoint(QString);
70
void addSpecialDevice(const QString& uniqueIdentifier, const QString& description,
71
const QString& URL, const QString& mimetype,bool mountState);
72
void removeSpecialDevice(const QString& uniqueIdentifier);
73
bool createLink(const KURL& deviceURL, const KURL& destinationURL);
74
void reloadExclusionLists();
75
void reReadSpecialConfig();
77
void mountSituationChanged();
81
void addSpecialDeviceInternal(const QString& uniqueIdentifier, const QString& description,
82
const QString& URL, const QString& mimetype,bool mountState,bool fromConfigFile);
84
void dirty(const QString&);