00001 /* 00002 * Copyright (C) 2003-2007 Funambol 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 as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 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