Updates::Updates(QObject *parent) : QObject(parent), UpdateChecked{false} { kdebugf(); buildQuery(); triggerAllAccountsRegistered(); }
void FileTransferHandlerManager::setFileTransferManager(FileTransferManager *fileTransferManager) { m_fileTransferManager = fileTransferManager; connect(m_fileTransferManager.data(), SIGNAL(fileTransferAboutToBeAdded(FileTransfer)), this, SLOT(fileTransferAboutToBeAdded(FileTransfer))); connect(m_fileTransferManager.data(), SIGNAL(fileTransferAboutToBeRemoved(FileTransfer)), this, SLOT(fileTransferRemoved(FileTransfer))); triggerAllAccountsRegistered(); }
Infos::Infos(QObject *parent) : QObject(parent) { kdebugf(); triggerAllAccountsRegistered(); fileName = profilePath("last_seen.data"); if (QFile::exists(fileName)) { QFile file(fileName); if (file.open(QIODevice::ReadOnly)) { kdebugm(KDEBUG_INFO, "file opened '%s'\n", qPrintable(file.fileName())); QTextStream stream(&file); while (!stream.atEnd()) { QStringList fullId = stream.readLine().split(':', QString::SkipEmptyParts); if (fullId.count() != 2) continue; QString protocol = fullId[0]; QString uin = fullId[1]; QString dateTime = stream.readLine(); //kdebugm(KDEBUG_INFO, "Last seen %s %s %s\n", qPrintable(protocol), qPrintable(uin), qPrintable(dateTime)); Contact contact; // wstawiamy tylko konta, które są na liście kontaktów foreach(Account account, AccountManager::instance()->byProtocolName(protocol)) { contact = ContactManager::instance()->byId(account, uin, ActionReturnNull); if (contact.isNull()) continue; if (!contact.ownerBuddy().isAnonymous()) { lastSeen[qMakePair(protocol, uin)] = dateTime; // wystarczy, że kontakt jest na jednym koncie, omijamy resztę continue; } } QString tmp = stream.readLine(); // skip empty line } file.close(); }
Firewall::Firewall() : FloodMessages(0) { kdebugf(); pattern.setCaseSensitivity(Qt::CaseSensitive); import_0_6_5_configuration(); createDefaultConfiguration(); configurationUpdated(); LastMsg.start(); LastNotify.start(); triggerAllAccountsRegistered(); connect(ChatWidgetManager::instance(), SIGNAL(chatWidgetDestroying(ChatWidget *)), this, SLOT(chatDestroyed(ChatWidget *))); kdebugf2(); }
BuddyListModel::BuddyListModel(const BuddyList &list, QObject *parent) : BuddiesModelBase(parent), List(list) { triggerAllAccountsRegistered(); }
AvatarManager::AvatarManager() { triggerAllAccountsRegistered(); }