3
* Ekiga -- A VoIP and Video-Conferencing application
4
* Copyright (C) 2000-2007 Damien Sandras
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or (at
9
* your option) any later version. This program is distributed in the hope
10
* that it will be useful, but WITHOUT ANY WARRANTY; without even the
11
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* See the GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License along
15
* with this program; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18
* Ekiga is licensed under the GPL license and as a special exception, you
19
* have permission to link or otherwise combine this program with the
20
* programs OPAL, OpenH323 and PWLIB, and distribute the combination, without
21
* applying the requirements of the GNU GPL to the OPAL, OpenH323 and PWLIB
22
* programs, as long as you do follow the requirements of the GNU GPL for all
23
* the rest of the software thus combined.
28
* bank.h - description
29
* ------------------------------------------
30
* begin : written in 2008 by Damien Sandras
31
* copyright : (c) 2008 by Damien Sandras
32
* description : declaration of a partial implementation
41
#include "account-core.h"
50
* @addtogroup accounts
62
/** Visit all accounts of the bank and trigger the given callback.
63
* @param The callback (the return value means "go on" and allows
66
virtual void visit_accounts (sigc::slot<bool, Account &> visitor) = 0;
69
/** Find the account with the given address of record in the Bank
70
* @param aor is the address of record of the Account
71
* @return The Account corresponding to the find result
73
virtual Ekiga::Account *find_account (const std::string & aor) = 0;
76
/** Create the menu for that Bank and its actions.
77
* This function is purely virtual and should be implemented by
78
* the descendant of the Ekiga::Bank.
79
* @param A MenuBuilder object to populate.
81
virtual bool populate_menu (MenuBuilder &) = 0;
84
/** This signal is emitted when a account has been added.
86
sigc::signal<void, Account &> account_added;
88
/** This signal is emitted when a account has been removed.
90
sigc::signal<void, Account &> account_removed;
92
/** This signal is emitted when a account has been updated.
94
sigc::signal<void, Account &> account_updated;
96
/** This signal is emitted when there is a new registration event
97
* @param: account is the account
99
* info contains information about the registration status
101
sigc::signal<void, const Ekiga::Account *, Ekiga::AccountCore::RegistrationState, std::string> registration_event;
103
/** This signal is emitted when there is a new message waiting event
104
* @param: account is the account
105
* info contains information about the indication
107
sigc::signal<void, const Ekiga::Account *, std::string> mwi_event;
109
/** This chain allows the BankImpl to present forms to the user
111
ChainOfResponsibility<FormRequest*> questions;