예제 #1
0
파일: opal-bank.cpp 프로젝트: Seksa/ekiga
void Opal::Bank::add (Account::Type acc_type,
                      std::string name,
                      std::string host,
                      std::string user,
                      std::string auth_user,
                      std::string password,
                      bool enabled,
                      unsigned timeout)
{
  boost::shared_ptr<Ekiga::PresenceCore> pcore = presence_core.lock ();
  if ( !pcore)
    return;
  AccountPtr account
    = AccountPtr(new Opal::Account (sip_endpoint,
				    pcore,
				    notification_core,
				    personal_details,
				    audiooutput_core,
				    opal_component, acc_type, name,
				    host, user, auth_user,
				    password, enabled,
				    timeout));
  add_account (account);
  Ekiga::BankImpl<Account>::add_connection (account, account->trigger_saving.connect (boost::bind (&Opal::Bank::save, this)));
  Ekiga::BankImpl<Account>::add_connection (account, account->presence_received.connect (boost::ref (presence_received)));
  Ekiga::BankImpl<Account>::add_connection (account, account->status_received.connect (boost::ref (status_received)));
}
예제 #2
0
BillItem::
BillItem  (UsageTariffPtr tariff, CDR const & cdr) 
          : mTariff (tariff)
          , mTotal (0)
          , mStart (cdr.mStart)
          , mDuration (cdr.mDuration) 
{
  mAccount = AccountPtr (new Account (cdr.mAccount));
  mCalledNumber = PhoneNumberPtr (new PhoneNumber (cdr.mCalledNumber));
}
예제 #3
0
AccountPtr Account::create()
{
    AccountPtr acc = AccountPtr(new Account);
    acc->setSharedThis(acc);
    return acc;
}
/**
 * Return the account through which the request was made.
 *
 * \return A pointer to the Account object.
 */
AccountPtr PendingChannelRequest::account() const
{
    return AccountPtr(qobject_cast<Account*>((Account*) object().data()));
}