src/include/common/syncml/core/Target.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 #ifndef INCL_TARGET
00020 #define INCL_TARGET
00021 
00023 #include "base/fscapi.h"
00024 
00025 
00026 class Filter;  // forward declaration
00027 
00028 class Target {
00029 
00030     // ------------------------------------------------------------ Private data
00031     private:
00032         char*  locURI;
00033         char*  locName;
00034         Filter*  filter;
00035 
00036         void set(const char*  locURI, const char*  locName, const Filter* filter);
00037 
00038     // ---------------------------------------------------------- Protected data
00039     public:
00040 
00041 
00050     Target(const char*  locURI, const char*  locName, const Filter* filter = NULL);
00051 
00058     Target(const char*  locURI);
00059 
00060     Target();
00061     ~Target();
00062 
00063 
00064     // ---------------------------------------------------------- Public methods
00065 
00069     const char*  getLocURI();
00070 
00075     void setLocURI(const char*  locURI);
00076 
00081     const char*  getLocName();
00082 
00087     void setLocName(const char*  locName);
00088 
00095     Filter* getFilter();
00096 
00103     void setFilter(Filter* filter);
00104 
00105 
00106     Target* clone();
00107 
00108 
00109 
00110 };
00111 
00113 #endif

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