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

kdecore

  • kdecore
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 
35 class KDECORE_EXPORT KMountPoint : public KShared
36 {
37  typedef signed long long int filesize_t;
38 public:
39  typedef KSharedPtr<KMountPoint> Ptr;
40  typedef TQValueList<Ptr> List;
41 public:
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 
99 private:
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
KSharedPtr
Can be used to control the lifetime of an object that has derived KShared.
Definition: ksharedptr.h:101
KShared
Reference counting for shared objects.
Definition: ksharedptr.h:40

kdecore

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

kdecore

Skip menu "kdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdecore by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |