Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

volume.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEVFSMM_VOLUME_H
00004 #define _LIBGNOMEVFSMM_VOLUME_H
00005 
00006 #include <glibmm.h>
00007 
00008 /* Copyright 2003 gnome-vfsmm Development Team
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public
00021  * License along with this library; if not, write to the Free
00022  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00023  */
00024 
00025 
00026 #include <libgnomevfsmm/enums.h>
00027 
00028 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00029 typedef struct _GnomeVFSVolume GnomeVFSVolume;
00030 typedef struct _GnomeVFSVolumeClass GnomeVFSVolumeClass;
00031 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00032 
00033 
00034 namespace Gnome
00035 {
00036 
00037 namespace Vfs
00038 { class Volume_Class; } // namespace Vfs
00039 
00040 } // namespace Gnome
00041 namespace Gnome
00042 {
00043 
00044 namespace Vfs
00045 {
00046 
00047 class Drive;
00048 
00049 
00050 class Volume : public Glib::Object
00051 {
00052   
00053 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00054 
00055 public:
00056   typedef Volume CppObjectType;
00057   typedef Volume_Class CppClassType;
00058   typedef GnomeVFSVolume BaseObjectType;
00059   typedef GnomeVFSVolumeClass BaseClassType;
00060 
00061 private:  friend class Volume_Class;
00062   static CppClassType volume_class_;
00063 
00064 private:
00065   // noncopyable
00066   Volume(const Volume&);
00067   Volume& operator=(const Volume&);
00068 
00069 protected:
00070   explicit Volume(const Glib::ConstructParams& construct_params);
00071   explicit Volume(GnomeVFSVolume* castitem);
00072 
00073 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00074 
00075 public:
00076   virtual ~Volume();
00077 
00078 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00079   static GType get_type()      G_GNUC_CONST;
00080   static GType get_base_type() G_GNUC_CONST;
00081 #endif
00082 
00084   GnomeVFSVolume*       gobj()       { return reinterpret_cast<GnomeVFSVolume*>(gobject_); }
00085 
00087   const GnomeVFSVolume* gobj() const { return reinterpret_cast<GnomeVFSVolume*>(gobject_); }
00088 
00090   GnomeVFSVolume* gobj_copy();
00091 
00092 private:
00093 
00094   
00095 public:
00096 
00100   typedef sigc::slot<void, bool, Glib::ustring, Glib::ustring> OpSlot;
00101   
00102   
00103   gulong get_id() const;
00104   
00105   VolumeType get_volume_type() const;
00106   
00107   DeviceType get_device_type() const;
00108   
00109   Glib::RefPtr<Drive> get_drive() const;
00110   
00111   Glib::ustring get_device_path() const;
00112   
00113   Glib::ustring get_activation_uri() const;
00114   
00115   Glib::ustring get_filesystem_type() const;
00116   
00117   Glib::ustring get_display_name() const;
00118   
00119   Glib::ustring get_icon() const;
00120   
00121   Glib::ustring get_hal_udi() const;
00122   
00123   bool is_user_visible() const;
00124   
00125   bool is_read_only() const;
00126   
00127   bool is_mounted() const;
00128   
00129   bool handles_trash() const;
00130   
00131   
00132   static int compare(const Glib::RefPtr<const Volume>& a, const Glib::RefPtr<const Volume>& b);
00133   
00134 
00135   void unmount(const OpSlot& slot);
00136   void eject(const OpSlot& slot);
00137  
00138   
00139   static void connect_to_server(const Glib::ustring& uri, const Glib::ustring& display_name, const Glib::ustring& icon);
00140 
00141 
00142 public:
00143 
00144 public:
00145   //C++ methods used to invoke GTK+ virtual functions:
00146 
00147 protected:
00148   //GTK+ Virtual Functions (override these to change behaviour):
00149 
00150   //Default Signal Handlers::
00151 
00152 
00153 };
00154   
00155 
00156 } // namespace Vfs
00157 } // namespace Gnome
00158 
00159 
00160 namespace Glib
00161 {
00167   Glib::RefPtr<Gnome::Vfs::Volume> wrap(GnomeVFSVolume* object, bool take_copy = false);
00168 }
00169 
00170 
00171 #endif /* _LIBGNOMEVFSMM_VOLUME_H */
00172 

Generated on Fri Sep 9 18:19:27 2005 for libgnomevfsmm by  doxygen 1.4.4