kio Library API Documentation

kautomount.h

00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2000 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00016    Boston, MA 02111-1307, USA.
00017 */
00018 #ifndef __auto_mount_h__
00019 #define __auto_mount_h__
00020 
00021 #include <qobject.h>
00022 #include <qstring.h>
00023 
00024 namespace KIO {
00025 class Job;
00026 }
00027 
00036 class KAutoMount : public QObject
00037 {
00038   Q_OBJECT
00039   friend class gcc_gives_a_warning_without_this;
00040 public:
00052   KAutoMount( bool readonly, const QString& format, const QString& device, const QString& mountpoint,
00053               const QString & desktopFile, bool show_filemanager_window = true );
00054   ~KAutoMount() {}
00055 
00056 signals:
00058   void finished();
00060   void error();
00061 
00062 protected slots:
00063   void slotResult( KIO::Job * );
00064 
00065 protected:
00066   QString m_strDevice;
00067   bool m_bShowFilemanagerWindow;
00068   QString m_desktopFile;
00069 private:
00071   class KAutoMountPrivate* d;
00072 };
00073 
00081 class KAutoUnmount : public QObject
00082 {
00083   Q_OBJECT
00084   friend class gcc_gives_a_warning_without_this;
00085 public:
00092   KAutoUnmount( const QString & mountpoint, const QString & desktopFile );
00093   ~KAutoUnmount() {}
00094 
00095 signals:
00097   void finished();
00099   void error();
00100 
00101 protected slots:
00102   void slotResult( KIO::Job * );
00103 private:
00104   QString m_desktopFile;
00105   QString m_mountpoint;
00106 private:
00108   class KAutoUnmountPrivate* d;
00109 };
00110 
00111 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:15:29 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001