AccountState::AccountState(AccountPtr account) : QObject(account.data()) , _account(account) , _quotaInfo(0) , _state(AccountState::Disconnected) , _connectionStatus(ConnectionValidator::Undefined) , _waitingForNewCredentials(false) { qRegisterMetaType<AccountState*>("AccountState*"); _quotaInfo = new QuotaInfo(this); // Need to be initialized when 'this' is fully initialized connect(account.data(), SIGNAL(invalidCredentials()), SLOT(slotInvalidCredentials())); connect(account.data(), SIGNAL(credentialsFetched(AbstractCredentials*)), SLOT(slotCredentialsFetched(AbstractCredentials*))); }
AccountListener::AccountListener(AccountPtr ptr) : m_accPtr(ptr) { QObject::connect(ptr.data()->becomeReady(), SIGNAL(finished(Tp::PendingOperation *)), this, SLOT(accountReady(Tp::PendingOperation *))); QObject::connect(m_accPtr.data(), SIGNAL(statusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason, const QString &, const QVariantMap &)), this, SLOT(statusChanged(Tp::ConnectionStatus, Tp::ConnectionStatusReason, const QString &, const QVariantMap &))); }