00001
00002
00003
#ifndef _LIBGDAMM_TRANSACTION_H
00004
#define _LIBGDAMM_TRANSACTION_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
00026
00027
00028
00029
00030
#include <glibmm/object.h>
00031
#include <libgda/gda-transaction.h>
00032
00033
00034
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00035
typedef struct _GdaTransaction GdaTransaction;
00036
typedef struct _GdaTransactionClass GdaTransactionClass;
00037
#endif
00038
00039
00040
namespace Gnome
00041 {
00042
00043
namespace Gda
00044 {
class Transaction_Class; }
00045
00046 }
00047
namespace Gnome
00048 {
00049
00050
namespace Gda
00051 {
00052
00053
00054 class Transaction :
public Glib::Object
00055 {
00056
00057
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00058
00059
public:
00060
typedef Transaction CppObjectType;
00061
typedef Transaction_Class CppClassType;
00062
typedef GdaTransaction BaseObjectType;
00063
typedef GdaTransactionClass BaseClassType;
00064
00065
private:
friend class Transaction_Class;
00066
static CppClassType transaction_class_;
00067
00068
private:
00069
00070
Transaction(
const Transaction&);
00071
Transaction& operator=(
const Transaction&);
00072
00073
protected:
00074
explicit Transaction(
const Glib::ConstructParams& construct_params);
00075
explicit Transaction(GdaTransaction* castitem);
00076
00077
#endif
00078
00079
public:
00080
virtual ~Transaction();
00081
00082
#ifndef DOXYGEN_SHOULD_SKIP_THIS
00083
static GType get_type() G_GNUC_CONST;
00084
static GType get_base_type() G_GNUC_CONST;
00085
#endif
00086
00088 GdaTransaction*
gobj() {
return reinterpret_cast<GdaTransaction*>(gobject_); }
00089
00091 const GdaTransaction*
gobj()
const {
return reinterpret_cast<GdaTransaction*>(gobject_); }
00092
00093 GdaTransaction*
gobj_copy();
00094
00095
private:
00096
00097
protected:
00098
explicit Transaction(
const Glib::ustring& name);
00099
00100
public:
00101
00102
static Glib::RefPtr<Transaction> create(
const Glib::ustring& name);
00103
00104
00105
Glib::ustring get_name() const;
00106
00107
void set_name(const Glib::ustring& name);
00108
00109
00110 public:
00111
00112 public:
00113
00114
00115 protected:
00116
00117
00118
00119
00120
00121 };
00122
00123 }
00124 }
00125
00126
00127 namespace Glib
00128 {
00130
Glib::RefPtr<Gnome::Gda::Transaction> wrap(GdaTransaction* object,
bool take_copy =
false);
00131 }
00132
00133
00134
#endif
00135