00001
00002
00003 #ifndef _LIBGNOMEVFSMM_TRANSFER_PROGRESS_H
00004 #define _LIBGNOMEVFSMM_TRANSFER_PROGRESS_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <libgnomevfs/gnome-vfs-xfer.h>
00026
00027 #include <libgnomevfsmm/enums.h>
00028 #include <libgnomevfsmm/types.h>
00029
00030
00031 namespace Gnome
00032 {
00033
00034 namespace Vfs
00035 {
00036
00037 namespace Transfer
00038 {
00039
00040 class ProgressInfo
00041 {
00042 public:
00043 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00044 typedef ProgressInfo CppObjectType;
00045 typedef GnomeVFSXferProgressInfo BaseObjectType;
00046 #endif
00047
00048 private:
00049
00050
00051 public:
00052 ProgressInfo();
00053 ProgressInfo(GnomeVFSXferProgressInfo* src);
00054 ~ProgressInfo();
00055
00056
00057 operator bool() const;
00058
00059 GnomeVFSXferProgressInfo* gobj() { return gobject_; }
00060 const GnomeVFSXferProgressInfo* gobj() const { return gobject_; }
00061
00062 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00063 void assign_gobj(GnomeVFSXferProgressInfo* src);
00064 #endif
00065
00066
00067
00068
00069 ProgressStatus get_status() const;
00070 Result get_vfs_status() const;
00071 Phase get_phase() const;
00072 Glib::ustring get_source_name() const;
00073 Glib::ustring get_target_name() const;
00074 long int get_file_index() const;
00075 long int get_total_files() const;
00076 FileSize get_total_bytes() const;
00077 FileSize get_file_size() const;
00078 FileSize get_bytes_copied() const;
00079 FileSize get_total_bytes_copied() const;
00080 Glib::ustring get_duplicate_name() const;
00081 int get_duplicate_count() const;
00082 bool get_top_level_item() const;
00083
00084 protected:
00085 GnomeVFSXferProgressInfo* gobject_;
00086
00087 private:
00088 ProgressInfo(const ProgressInfo&);
00089 ProgressInfo& operator=(const ProgressInfo&);
00090
00091
00092 };
00093
00094 }
00095 }
00096 }
00097
00098 #endif
00099