Beispiel #1
0
ReportGenerator::ReportGenerator()
  :mProcess(nullptr),
    mArchDoc(nullptr)
{
  mAddressProvider = new AddressProvider( this );
  connect( mAddressProvider, SIGNAL( lookupResult(QString,KContacts::Addressee)),
           this, SLOT( slotAddresseeFound(QString, KContacts::Addressee)));
}
Beispiel #2
0
 Q_SLOT void lookup(QString name) {
    abort();
    name = name.trimmed().toUpper();
    QHostAddress addr(name);
    if (!addr.isNull()) {
       if (addr.isLoopback() || QNetworkInterface::allAddresses().contains(addr))
          return hasResult(Local);
       return hasResult(NonLocal);
    }
    if (QHostInfo::localHostName() == name)
       return hasResult(Local);
    m_id = QHostInfo::lookupHost(name, this, SLOT(lookupResult(QHostInfo)));
    m_timer.start(500);
 }