transfer-progress-2.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _LIBGNOMEVFSMM_TRANSFER_PROGRESS_2_H
00004 #define _LIBGNOMEVFSMM_TRANSFER_PROGRESS_2_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- c++ -*-
00010 /* Copyright 2006 gnome-vfsmm Development Team
00011  *
00012  * This library is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU Library General Public
00014  * License as published by the Free Software Foundation; either
00015  * version 2 of the License, or (at your option) any later version.
00016  *
00017  * This library is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020  * Library General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU Library General Public
00023  * License along with this library; if not, write to the Free
00024  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00025  */
00026 
00027 #include <libgnomevfs/gnome-vfs-xfer.h>
00028 
00029 #include <libgnomevfsmm/enums.h>
00030 #include <libgnomevfsmm/types.h>
00031 
00032 
00033 namespace Gnome
00034 {
00035 
00036 namespace Vfs
00037 {
00038 
00039 namespace Transfer2
00040 {
00041 
00045 class ProgressInfo
00046 {
00047   public:
00048 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00049   typedef ProgressInfo CppObjectType;
00050   typedef GnomeVFSXferProgressInfo BaseObjectType;
00051 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00052 
00053 private:
00054 
00055   
00056 public:
00057   ProgressInfo();
00058   ProgressInfo(GnomeVFSXferProgressInfo* src);
00059   ~ProgressInfo();
00060 
00061   // Test whether this is a valid instance.
00062   operator bool() const;
00063 
00064   GnomeVFSXferProgressInfo*       gobj()       { return gobject_; }
00065   const GnomeVFSXferProgressInfo* gobj() const { return gobject_; }
00066 
00067 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00068   void assign_gobj(GnomeVFSXferProgressInfo* src);
00069 #endif
00070 
00071   //_GET_MEMBER() should really be able to do this automatically,
00072   // but it's not a problem because it has already been done.
00073 
00074   ProgressStatus get_status() const;
00075   Result get_vfs_status() const;
00076   Phase get_phase() const;
00077   Glib::ustring get_source_name() const;
00078   Glib::ustring get_target_name() const;
00079   long int get_file_index() const;
00080   long int get_total_files() const;
00081   FileSize get_total_bytes() const;
00082   FileSize get_file_size() const;
00083   FileSize get_bytes_copied() const;
00084   FileSize get_total_bytes_copied() const;
00085   Glib::ustring get_duplicate_name() const;
00086   int get_duplicate_count() const;
00087   bool get_top_level_item() const;
00088 
00089 protected:
00090   GnomeVFSXferProgressInfo* gobject_;
00091 
00092 private:
00093   ProgressInfo(const ProgressInfo&);
00094   ProgressInfo& operator=(const ProgressInfo&);
00095 
00096 
00097 };
00098 
00099 } // namespace Transfer2
00100 } // namespace Vfs
00101 } // namespace Gnome
00102 
00103 
00104 #endif /* _LIBGNOMEVFSMM_TRANSFER_PROGRESS_2_H */
00105 

Generated on Sat Oct 6 16:26:45 2007 for libgnomevfsmm by  doxygen 1.5.1