Example #1
0
void Firewall::accountUnregistered(Account account)
{
    Protocol *protocol = account.protocolHandler();
    if (!protocol)
        return;

    ChatService *chatService = protocol->chatService();
    if (!chatService)
        return;

    disconnect(chatService, SIGNAL(filterIncomingMessage(Chat, Contact, QString &, time_t, bool &)),
               this, SLOT(filterIncomingMessage(Chat, Contact, QString &, time_t, bool &)));
    disconnect(chatService, SIGNAL(filterOutgoingMessage(Chat, QString &, bool &)),
               this, SLOT(filterOutgoingMessage(Chat, QString &, bool &)));
    disconnect(account, SIGNAL(connected()), this, SLOT(accountConnected()));
}
Example #2
0
void AccountNotificationService::ignoreErrors(const Notification &notification)
{
	auto account = qvariant_cast<Account>(notification.data[QStringLiteral("account")]);
	account.addProperty(QStringLiteral("notify:ignore-connection-errors"), false, CustomProperties::NonStorable);
	connect(account, SIGNAL(connected()), this, SLOT(accountConnected()));
}
JabberBookmarks::JabberBookmarks(JabberAccount *parent) : QObject(parent) , m_account(parent) 
{
	connect( m_account , SIGNAL(isConnectedChanged()) , this , SLOT(accountConnected()) );
}