• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
kautomount.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 David Faure <faure@kde.org>
3 
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.
7 
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.
12 
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., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef __auto_mount_h__
20 #define __auto_mount_h__
21 
22 #include <tqobject.h>
23 #include <tqstring.h>
24 
25 #include <kdelibs_export.h>
26 
27 #ifdef Q_MOC_RUN
28 #define Q_OS_UNIX
29 #endif // Q_MOC_RUN
30 
31 #ifdef Q_OS_UNIX
32 
33 namespace KIO {
34 class Job;
35 }
36 
45 class KIO_EXPORT KAutoMount : public TQObject
46 {
47  Q_OBJECT
48  friend class gcc_gives_a_warning_without_this;
49 public:
61  KAutoMount( bool readonly, const TQString& format, const TQString& device, const TQString& mountpoint,
62  const TQString & desktopFile, bool show_filemanager_window = true );
63 
64 signals:
66  void finished();
68  void error();
69 
70 protected slots:
71  void slotResult( KIO::Job * );
72 
73 protected:
74  TQString m_strDevice;
75  bool m_bShowFilemanagerWindow;
76  TQString m_desktopFile;
77 private:
79  ~KAutoMount() {}
80  class KAutoMountPrivate* d;
81 };
82 
90 class KIO_EXPORT KAutoUnmount : public TQObject
91 {
92  Q_OBJECT
93  friend class gcc_gives_a_warning_without_this;
94 public:
101  KAutoUnmount( const TQString & mountpoint, const TQString & desktopFile );
102 
103 signals:
105  void finished();
107  void error();
108 
109 protected slots:
110  void slotResult( KIO::Job * );
111 private:
112  TQString m_desktopFile;
113  TQString m_mountpoint;
114 private:
116  ~KAutoUnmount() {}
117  class KAutoUnmountPrivate* d;
118 };
119 
120 #endif //Q_OS_UNIX
121 
122 #endif
KAutoMount
This class implements synchronous mounting of devices, as well as showing a file-manager window after...
Definition: kautomount.h:46
KAutoMount::error
void error()
Emitted in case the directory could not been mounted.
KAutoMount::finished
void finished()
Emitted when the directory has been mounted.
KAutoUnmount
This class implements synchronous unmounting of devices, It is a wrapper around the asychronous KIO::...
Definition: kautomount.h:91
KAutoUnmount::error
void error()
Emitted in case the directory could not been unmounted.
KAutoUnmount::finished
void finished()
Emitted when the directory has been unmounted.
KIO::Job
The base class for all jobs.
Definition: jobclasses.h:68
KIO
A namespace for KIO globals.
Definition: authinfo.h:29

kio/kio

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

kio/kio

Skip menu "kio/kio"
  • 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 kio/kio 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. |