GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
GncABTransTempl Struct Reference

A template for an AqBanking transaction. More...

Public Member Functions

 _GncABTransTempl (const std::string &name, const std::string &recip_name, const std::string &recip_account, const std::string &recip_code, const GncRational &amount, const std::string &purpose, const std::string &purpose_cont)
 
KvpFrame * make_kvp_frame ()
 
const char * name () const
 
const char * recipient_name () const
 
const char * recipient_account () const
 
const char * recipient_bankcode () const
 
const GncRational amount () const
 
const char * purpose () const
 
const char * purpose_continuation () const
 
void set_name (const char *name)
 
void set_recipient_name (const char *name)
 
void set_recipient_account (const char *account)
 
void set_recipient_bankcode (const char *code)
 
void set_amount (GncRational amount)
 
void set_purpose (const char *purpose)
 
void set_purpose_continuation (const char *cont)
 

Detailed Description

A template for an AqBanking transaction.

Definition at line 46 of file gnc-aqbanking-templates.cpp.

Constructor & Destructor Documentation

◆ _GncABTransTempl() [1/2]

GncABTransTempl::_GncABTransTempl ( )
inline

Definition at line 49 of file gnc-aqbanking-templates.cpp.

49 :
50 m_name(), m_recipient_name(), m_recipient_account(),
51 m_recipient_bankcode(), m_amount(gnc_numeric_zero()), m_purpose(),
52 m_purpose_continuation() {}

◆ _GncABTransTempl() [2/2]

GncABTransTempl::_GncABTransTempl ( const std::string &  name,
const std::string &  recip_name,
const std::string &  recip_account,
const std::string &  recip_code,
const GncRational amount,
const std::string &  purpose,
const std::string &  purpose_cont 
)
inline

Definition at line 53 of file gnc-aqbanking-templates.cpp.

59 :
60 m_name(name), m_recipient_name(recip_name),
61 m_recipient_account(recip_account), m_recipient_bankcode(recip_code),
62 m_amount(amount), m_purpose(purpose),
63 m_purpose_continuation(purpose_cont) {}

Member Function Documentation

◆ amount()

const GncRational GncABTransTempl::amount ( ) const
inline

Definition at line 75 of file gnc-aqbanking-templates.cpp.

75{ return m_amount; }

◆ make_kvp_frame()

KvpFrame * GncABTransTempl::make_kvp_frame ( )

Definition at line 103 of file gnc-aqbanking-templates.cpp.

104{
105 auto frame = new KvpFrame;
106 frame->set({TT_NAME}, new KvpValue(g_strdup (m_name.c_str())));
107 frame->set({TT_RNAME}, new KvpValue(g_strdup (m_recipient_name.c_str())));
108 frame->set({TT_RACC}, new KvpValue(g_strdup (m_recipient_account.c_str())));
109 frame->set({TT_RBCODE}, new KvpValue(g_strdup (m_recipient_bankcode.c_str())));
110 frame->set({TT_AMOUNT}, new KvpValue(m_amount));
111 frame->set({TT_PURPOS}, new KvpValue(g_strdup (m_purpose.c_str())));
112 frame->set({TT_PURPOSCT}, new KvpValue(g_strdup (m_purpose_continuation.c_str())));
113 return frame;
114}

◆ name()

const char * GncABTransTempl::name ( ) const
inline

Definition at line 65 of file gnc-aqbanking-templates.cpp.

65{ return m_name.c_str(); }

◆ purpose()

const char * GncABTransTempl::purpose ( ) const
inline

Definition at line 76 of file gnc-aqbanking-templates.cpp.

76{ return m_purpose.c_str(); }

◆ purpose_continuation()

const char * GncABTransTempl::purpose_continuation ( ) const
inline

Definition at line 77 of file gnc-aqbanking-templates.cpp.

78 {
79 return m_purpose_continuation.c_str();
80 }

◆ recipient_account()

const char * GncABTransTempl::recipient_account ( ) const
inline

Definition at line 67 of file gnc-aqbanking-templates.cpp.

68 {
69 return m_recipient_account.c_str();
70 }

◆ recipient_bankcode()

const char * GncABTransTempl::recipient_bankcode ( ) const
inline

Definition at line 71 of file gnc-aqbanking-templates.cpp.

72 {
73 return m_recipient_bankcode.c_str();
74 }

◆ recipient_name()

const char * GncABTransTempl::recipient_name ( ) const
inline

Definition at line 66 of file gnc-aqbanking-templates.cpp.

66{ return m_recipient_name.c_str(); }

◆ set_amount()

void GncABTransTempl::set_amount ( GncRational  amount)
inline

Definition at line 89 of file gnc-aqbanking-templates.cpp.

89{ m_amount = amount; }

◆ set_name()

void GncABTransTempl::set_name ( const char *  name)
inline

Definition at line 81 of file gnc-aqbanking-templates.cpp.

81{ m_name = name; }

◆ set_purpose()

void GncABTransTempl::set_purpose ( const char *  purpose)
inline

Definition at line 90 of file gnc-aqbanking-templates.cpp.

90{ m_purpose = purpose; }

◆ set_purpose_continuation()

void GncABTransTempl::set_purpose_continuation ( const char *  cont)
inline

Definition at line 91 of file gnc-aqbanking-templates.cpp.

91{ m_purpose_continuation = cont; }

◆ set_recipient_account()

void GncABTransTempl::set_recipient_account ( const char *  account)
inline

Definition at line 83 of file gnc-aqbanking-templates.cpp.

83 {
84 m_recipient_account = account;
85 }

◆ set_recipient_bankcode()

void GncABTransTempl::set_recipient_bankcode ( const char *  code)
inline

Definition at line 86 of file gnc-aqbanking-templates.cpp.

86 {
87 m_recipient_bankcode = code;
88 }

◆ set_recipient_name()

void GncABTransTempl::set_recipient_name ( const char *  name)
inline

Definition at line 82 of file gnc-aqbanking-templates.cpp.

82{ m_recipient_name = name; }

The documentation for this struct was generated from the following file: