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

tdeio/tdeio

  • tdeio
  • tdeio
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 <tdelibs_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 TDEIO {
34 class Job;
35 }
36 
45 class TDEIO_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( TDEIO::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 TDEIO_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( TDEIO::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:45
TDEIO
A namespace for TDEIO globals.
Definition: authinfo.h:29
TDEIO::Job
The base class for all jobs.
Definition: jobclasses.h:67
KAutoUnmount
This class implements synchronous unmounting of devices, It is a wrapper around the asychronous TDEIO...
Definition: kautomount.h:90

tdeio/tdeio

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

tdeio/tdeio

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