From kde-commits Wed Sep 20 15:33:26 2006 From: Dirk Mueller Date: Wed, 20 Sep 2006 15:33:26 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kdeprint/cups Message-Id: <1158766406.760316.4268.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=115876643009686 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;