[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdelibs/kdeprint/cups
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-09-20 15:33:26
Message-ID: 1158766406.760316.4268.nullmailer () svn ! kde ! org
[Download RAW message or body]

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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic