• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • tdecore
kmountpoint.h
1/*
2 This file is part of the KDE libraries
3 Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _KMOUNTPOINT_H_
21#define _KMOUNTPOINT_H_
22
23#include <tqptrlist.h>
24#include <tqstringlist.h>
25
26#include <ksharedptr.h>
27
35class TDECORE_EXPORT KMountPoint : public TDEShared
36{
37 typedef signed long long int filesize_t;
38public:
39 typedef TDESharedPtr<KMountPoint> Ptr;
40 typedef TQValueList<Ptr> List;
41public:
42 enum { NeedMountOptions = 1, NeedRealDeviceName = 2 };
43
49 static KMountPoint::List possibleMountPoints(int infoNeeded=0);
50
56 static KMountPoint::List currentMountPoints(int infoNeeded=0);
57
62 TQString mountedFrom() const { return m_mountedFrom; }
63
69 TQString realDeviceName() const { return m_device; }
70
74 TQString mountPoint() const { return m_mountPoint; }
75
79 TQString mountType() const { return m_mountType; }
80
85 TQStringList mountOptions() const { return m_mountOptions; }
86
92 static TQString devNameFromOptions(const TQStringList &options);
93
97 ~KMountPoint();
98
99private:
103 KMountPoint();
104
105 TQString m_mountedFrom;
106 TQString m_device;
107 TQString m_mountPoint;
108 TQString m_mountType;
109 TQStringList m_mountOptions;
110
111 class KMountPointPrivate;
112 KMountPointPrivate *d;
113};
114
115#endif // _KMOUNTPOINT_H_
116
KMountPoint
The KMountPoint class provides information about mounted and unmounted disks.
Definition: kmountpoint.h:36
KMountPoint::mountPoint
TQString mountPoint() const
Path where the filesystem is mounted or can be mounted.
Definition: kmountpoint.h:74
KMountPoint::realDeviceName
TQString realDeviceName() const
Canonical name of the device where the filesystem got mounted from.
Definition: kmountpoint.h:69
KMountPoint::mountType
TQString mountType() const
Type of filesystem.
Definition: kmountpoint.h:79
KMountPoint::mountOptions
TQStringList mountOptions() const
Options used to mount the filesystem.
Definition: kmountpoint.h:85
KMountPoint::mountedFrom
TQString mountedFrom() const
Where this filesystem gets mounted from.
Definition: kmountpoint.h:62
TDESharedPtr
Can be used to control the lifetime of an object that has derived TDEShared.
Definition: ksharedptr.h:101
TDEShared
Reference counting for shared objects.
Definition: ksharedptr.h:40

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.9.4
This website is maintained by Timothy Pearson.