ekiga r7674 - trunk/lib/engine/account
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7674 - trunk/lib/engine/account
- Date: Sun, 22 Feb 2009 10:45:14 +0000 (UTC)
Author: jpuydt
Date: Sun Feb 22 10:45:13 2009
New Revision: 7674
URL: http://svn.gnome.org/viewvc/ekiga?rev=7674&view=rev
Log:
Kicked the find_account method out of the abstract bank classes
Modified:
trunk/lib/engine/account/bank-impl.h
trunk/lib/engine/account/bank.h
Modified: trunk/lib/engine/account/bank-impl.h
==============================================================================
--- trunk/lib/engine/account/bank-impl.h (original)
+++ trunk/lib/engine/account/bank-impl.h Sun Feb 22 10:45:13 2009
@@ -101,14 +101,6 @@
*/
void visit_accounts (sigc::slot1<bool, Account &> visitor);
- /** Find the account with the given address of record in the Bank
- * @param aor is the address of record of the Account or the host to search
- * for
- * @return The Account corresponding to the find result
- * The returned account should not be freed.
- */
- Ekiga::Account *find_account (const std::string & aor);
-
/** This function be called when a new account has to be added to the Bank.
*/
void new_account ();
@@ -228,29 +220,6 @@
template<typename T>
-Ekiga::Account *Ekiga::BankImpl<T>::find_account (const std::string & aor)
-{
- for (typename Ekiga::BankImpl<T>::iterator it = Lister<T>::begin ();
- it != Lister<T>::end ();
- it++) {
-
- if (aor.find ("@") != std::string::npos) {
- if (it->get_aor () == aor) {
- return (&(*it));
- }
- }
- else {
- if (it->get_host () == aor) {
- return (&(*it));
- }
- }
- }
-
- return NULL;
-}
-
-
-template<typename T>
typename Ekiga::BankImpl<T>::iterator
Ekiga::BankImpl<T>::begin ()
{
Modified: trunk/lib/engine/account/bank.h
==============================================================================
--- trunk/lib/engine/account/bank.h (original)
+++ trunk/lib/engine/account/bank.h Sun Feb 22 10:45:13 2009
@@ -66,13 +66,6 @@
virtual void visit_accounts (sigc::slot1<bool, Account &> visitor) = 0;
- /** Find the account with the given address of record in the Bank
- * @param aor is the address of record of the Account
- * @return The Account corresponding to the find result
- */
- virtual Ekiga::Account *find_account (const std::string & aor) = 0;
-
-
/** Create the menu for that Bank and its actions.
* This function is purely virtual and should be implemented by
* the descendant of the Ekiga::Bank.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]