SVN commit 586778 by mueller: add hostaddr helper, needed for CUPS 1.2.x support M +7 -0 cupsinfos.cpp M +1 -0 cupsinfos.h --- branches/KDE/3.5/kdelibs/kdeprint/cups/cupsinfos.cpp #586777:586778 @@ -69,6 +69,13 @@ { } +QString CupsInfos::hostaddr() const +{ + if (host_[0] != '/') + return host_ + ":" + port_; + return host_; +} + void CupsInfos::setHost(const QString& s) { host_ = s; --- branches/KDE/3.5/kdelibs/kdeprint/cups/cupsinfos.h #586777:586778 @@ -32,6 +32,7 @@ ~CupsInfos(); const QString& host() const; + QString hostaddr() const; int port() const; const QString& login() const; const QString& password() const;