transfer-progress.h

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

Generated on Tue Aug 22 09:07:07 2006 for libgnomevfsmm by  doxygen 1.4.7