src/include/common/syncml/core/Search.h

00001 /*
00002  * Copyright (C) 2003-2007 Funambol, Inc
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
00017  */
00018 
00019 
00020 #ifndef INCL_SEARCH
00021 #define INCL_SEARCH
00022 
00024 #include "base/fscapi.h"
00025 #include "base/util/ArrayList.h"
00026 #include "syncml/core/AbstractCommand.h"
00027 #include "syncml/core/Data.h"
00028 #include "syncml/core/Target.h"
00029 
00030 #define SEARCH_COMMAND_NAME "Search"
00031 
00032 class Search : public AbstractCommand{
00033 
00034      // ------------------------------------------------------------ Private data
00035     private:
00036         char*     COMMAND_NAME;
00037         BOOL        noResults;
00038         Target*     target   ;
00039         ArrayList*  sources; // Source[]. It is an ArrayList of SourceArray object. Every one contains a Source object
00040         char*     lang;
00041         Data*       data;
00042 
00043     // ---------------------------------------------------------- Public data
00044     public:
00045 
00046         Search();
00047         ~Search();
00048 
00064         Search(CmdID*      cmdID    ,
00065                BOOL        noResp   ,
00066                BOOL        noResults,
00067                Cred*       cred     ,
00068                Target*     target   ,
00069                ArrayList*  sources  ,
00070                char*     lang     ,
00071                Meta*       meta     ,
00072                Data*       data     );
00073 
00080         BOOL isNoResults();
00081 
00087         void setNoResults(BOOL noResults);
00088 
00094         BOOL getNoResults();
00095 
00100         Target* getTarget();
00101 
00107         void setTarget(Target* target);
00108 
00113         ArrayList* getSources();
00114 
00121         void setSources(ArrayList* sources);
00122 
00129         const char* getLang();
00130 
00136         void setLang(const char* lang);
00137 
00144         Data* getData();
00145 
00152         void setData(Data* data);
00153 
00159         const char* getName();
00160 
00161         ArrayElement* clone();
00162 
00163 };
00164 
00166 #endif

Generated on Fri Jun 15 11:38:30 2007 for Funambol C++ Client Library by  doxygen 1.5.2