libgnomevfsmm  2.26.0
transfer-progress-2.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _LIBGNOMEVFSMM_TRANSFER_PROGRESS_2_H
4 #define _LIBGNOMEVFSMM_TRANSFER_PROGRESS_2_H
5 
6 
7 #include <glibmm.h>
8 
9 // -*- c++ -*-
10 /* Copyright 2006 gnome-vfsmm Development Team
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public
23  * License along with this library; if not, write to the Free
24  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25  */
26 
27 #include <libgnomevfs/gnome-vfs-xfer.h>
28 
29 #include <libgnomevfsmm/enums.h>
30 #include <libgnomevfsmm/types.h>
31 
32 
33 namespace Gnome
34 {
35 
36 namespace Vfs
37 {
38 
39 namespace Transfer2
40 {
41 
46 {
47  public:
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49  typedef ProgressInfo CppObjectType;
50  typedef GnomeVFSXferProgressInfo BaseObjectType;
51 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
52 
53 private:
54 
55 
56 public:
57  ProgressInfo();
58  ProgressInfo(GnomeVFSXferProgressInfo* src);
59  ~ProgressInfo();
60 
61  // Test whether this is a valid instance.
62  operator bool() const;
63 
64  GnomeVFSXferProgressInfo* gobj() { return gobject_; }
65  const GnomeVFSXferProgressInfo* gobj() const { return gobject_; }
66 
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68  void assign_gobj(GnomeVFSXferProgressInfo* src);
69 #endif
70 
71  //_GET_MEMBER() should really be able to do this automatically,
72  // but it's not a problem because it has already been done.
73 
74  ProgressStatus get_status() const;
75  Result get_vfs_status() const;
76  Phase get_phase() const;
77  Glib::ustring get_source_name() const;
78  Glib::ustring get_target_name() const;
79  long int get_file_index() const;
80  long int get_total_files() const;
81  FileSize get_total_bytes() const;
82  FileSize get_file_size() const;
83  FileSize get_bytes_copied() const;
85  Glib::ustring get_duplicate_name() const;
86  int get_duplicate_count() const;
87  bool get_top_level_item() const;
88 
89 protected:
90  GnomeVFSXferProgressInfo* gobject_;
91 
92 private:
93  ProgressInfo(const ProgressInfo&);
94  ProgressInfo& operator=(const ProgressInfo&);
95 
96 
97 };
98 
99 } // namespace Transfer2
100 } // namespace Vfs
101 } // namespace Gnome
102 
103 
104 #endif /* _LIBGNOMEVFSMM_TRANSFER_PROGRESS_2_H */
105 
Phase
Definition: enums.h:705
const GnomeVFSXferProgressInfo * gobj() const
Definition: transfer-progress-2.h:65
Definition: address.h:36
Result
Definition: enums.h:96
GnomeVFSXferProgressInfo * gobj()
Definition: transfer-progress-2.h:64
ProgressStatus
Definition: enums.h:647
Glib::ustring get_target_name() const
Provides progress information for the transfer operation.
Definition: transfer-progress-2.h:45
GnomeVFSXferProgressInfo * gobject_
Definition: transfer-progress-2.h:90
GnomeVFSFileSize FileSize
Definition: types.h:29
Glib::ustring get_duplicate_name() const
Glib::ustring get_source_name() const
ProgressStatus get_status() const