diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-08-11 19:08:15 -0500 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2012-08-16 00:18:33 +0200 |
commit | c89b32ebab33674df362f2262263504d210dde83 (patch) | |
tree | e7d13042f2d016e1a61b55d5676d9e04475f8755 /kdeprint/cups | |
parent | 6fc204a0c45bb866ddab08baf83a1f50684250d4 (diff) | |
download | tdelibs-c89b32ebab33674df362f2262263504d210dde83.tar.gz tdelibs-c89b32ebab33674df362f2262263504d210dde83.zip |
Fix FTBFS on CUPS < 1.6
(cherry picked from commit 91bf63b43bf4cc9ff640bd3c11549644cef05e6e)
Diffstat (limited to 'kdeprint/cups')
-rw-r--r-- | kdeprint/cups/ipprequest.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kdeprint/cups/ipprequest.h b/kdeprint/cups/ipprequest.h index 94bbe527f..1686482ad 100644 --- a/kdeprint/cups/ipprequest.h +++ b/kdeprint/cups/ipprequest.h @@ -27,6 +27,8 @@ #include <cups/ipp.h> +#include "config.h" + class IppRequest { public: @@ -72,6 +74,9 @@ public: bool keyword(const TQString& name, TQStringList& value); bool mime(const TQString& name, TQString& value); ipp_attribute_t* first(); +#ifndef HAVE_CUPS_1_6 + ipp_attribute_t* last(); +#endif // HAVE_CUPS_1_6 ipp_t* request(); TQMap<TQString,TQString> toMap(int group = -1); void setMap(const TQMap<TQString,TQString>& opts); @@ -178,6 +183,11 @@ inline bool IppRequest::mime(const TQString& name, TQString& value) inline bool IppRequest::doRequest(const TQString& res) { return doFileRequest(res); } +#ifndef HAVE_CUPS_1_6 +inline ipp_attribute_t* IppRequest::last() +{ return (request_ ? request_->last : NULL); } +#endif // HAVE_CUPS_1_6 + inline void IppRequest::setHost(const TQString& host) { host_ = host; } |