equal
deleted
inserted
replaced
53 |
53 |
54 bool XQRequestInfo::isBackground() const |
54 bool XQRequestInfo::isBackground() const |
55 { |
55 { |
56 XQSERVICE_DEBUG_PRINT("XQRequestInfo::isBackground"); |
56 XQSERVICE_DEBUG_PRINT("XQRequestInfo::isBackground"); |
57 return info(XQServiceUtils::OptBackground).toBool(); |
57 return info(XQServiceUtils::OptBackground).toBool(); |
|
58 } |
|
59 |
|
60 void XQRequestInfo::setForeground(bool on) |
|
61 { |
|
62 XQSERVICE_DEBUG_PRINT("XQRequestInfo::setForeground %d", on); |
|
63 setInfo(XQServiceUtils::OptForeground, on); |
|
64 } |
|
65 |
|
66 bool XQRequestInfo::isForeground() const |
|
67 { |
|
68 XQSERVICE_DEBUG_PRINT("XQRequestInfo::isForeground"); |
|
69 return info(XQServiceUtils::OptForeground).toBool(); |
58 } |
70 } |
59 |
71 |
60 |
72 |
61 bool XQRequestInfo::isSynchronous() const |
73 bool XQRequestInfo::isSynchronous() const |
62 { |
74 { |
126 { |
138 { |
127 XQSERVICE_DEBUG_PRINT("XQRequestInfo::infoKeys"); |
139 XQSERVICE_DEBUG_PRINT("XQRequestInfo::infoKeys"); |
128 return mInfo.keys(); |
140 return mInfo.keys(); |
129 } |
141 } |
130 |
142 |
|
143 int XQRequestInfo::id() const |
|
144 { |
|
145 XQSERVICE_DEBUG_PRINT("XQRequestInfo::id"); |
|
146 bool b=false; |
|
147 int id = info(XQServiceUtils::InfoId).toInt(&b); |
|
148 XQSERVICE_DEBUG_PRINT("\tId status=%d", b); |
|
149 if (!b) |
|
150 { |
|
151 return -1; |
|
152 } |
|
153 return id; |
|
154 } |
|
155 |
131 bool XQRequestInfo::isValid() const |
156 bool XQRequestInfo::isValid() const |
132 { |
157 { |
133 return !mInfo.isEmpty(); |
158 return !mInfo.isEmpty(); |
134 } |
159 } |
135 |
160 |