#include "syncml/core/Search.h"
+#include "base/globalsdef.h"
+
+USE_NAMESPACE
Search::Search() {
COMMAND_NAME = new char[strlen(SEARCH_COMMAND_NAME) + 1];
sprintf(COMMAND_NAME, SEARCH_COMMAND_NAME);
- noResults = FALSE;
+ noResults = false;
target = NULL;
sources = new ArrayList();
lang = NULL;
*
*/
Search::Search(CmdID* cmdID ,
- BOOL noResp ,
- BOOL noResults,
+ bool noResp ,
+ bool noResults,
Cred* cred ,
Target* target ,
ArrayList* sources ,
COMMAND_NAME = new char[strlen(SEARCH_COMMAND_NAME) + 1];
sprintf(COMMAND_NAME, SEARCH_COMMAND_NAME);
- this->noResults = FALSE;
+ this->noResults = false;
this->target = NULL;
this->sources = new ArrayList();
this->lang = NULL;
* @return noResults
*
*/
-BOOL Search::isNoResults() {
+bool Search::isNoResults() {
return (noResults != NULL);
}
*
* @param noResults the noResults value
*/
-void Search::setNoResults(BOOL noResults) {
- if ((noResults == NULL) || (noResults != TRUE && noResults != FALSE)) {
- this->noResults = NULL;
- } else {
- this->noResults = noResults;
- }
+void Search::setNoResults(bool noResults) {
+ this->noResults = noResults;
}
/**
*
* @return noResults if boolean value is true, otherwise null
*/
-BOOL Search::getNoResults() {
+bool Search::getNoResults() {
return noResults;
}