summaryrefslogtreecommitdiffstats
path: root/tdeprint/cups/ipprequest.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-10 16:51:25 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-10 16:51:25 -0500
commit9bc0d2cd9d38750658770e69bf0445dc5162beb7 (patch)
tree64d13ba540404b0dc3a05d3dccc68006ab42c4b0 /tdeprint/cups/ipprequest.h
parent6f181849bb63876ad03f8fa156b9fd5310bc9d29 (diff)
downloadtdelibs-9bc0d2cd9d38750658770e69bf0445dc5162beb7.tar.gz
tdelibs-9bc0d2cd9d38750658770e69bf0445dc5162beb7.zip
Update to new CUPS 1.6 API
Diffstat (limited to 'tdeprint/cups/ipprequest.h')
-rw-r--r--tdeprint/cups/ipprequest.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/tdeprint/cups/ipprequest.h b/tdeprint/cups/ipprequest.h
index ba8b2f081..11d7f4091 100644
--- a/tdeprint/cups/ipprequest.h
+++ b/tdeprint/cups/ipprequest.h
@@ -72,7 +72,7 @@ public:
bool keyword(const TQString& name, TQStringList& value);
bool mime(const TQString& name, TQString& value);
ipp_attribute_t* first();
- ipp_attribute_t* last();
+ ipp_t* request();
TQMap<TQString,TQString> toMap(int group = -1);
void setMap(const TQMap<TQString,TQString>& opts);
@@ -178,12 +178,6 @@ inline bool IppRequest::mime(const TQString& name, TQString& value)
inline bool IppRequest::doRequest(const TQString& res)
{ return doFileRequest(res); }
-inline ipp_attribute_t* IppRequest::first()
-{ return (request_ ? request_->attrs : NULL); }
-
-inline ipp_attribute_t* IppRequest::last()
-{ return (request_ ? request_->last : NULL); }
-
inline void IppRequest::setHost(const TQString& host)
{ host_ = host; }
@@ -193,4 +187,7 @@ inline void IppRequest::setPort(int p)
inline void IppRequest::dump(int state)
{ dump_ = state; }
+inline ipp_t* IppRequest::request()
+{ return request_; }
+
#endif