00001 /* 00002 * This file is part of calendar-backend 00003 * 00004 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). 00005 * 00006 * Contact: Ilias Biris <ilias.biris@nokia.com> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 * 00022 */ 00023 00024 #ifndef __CCACHE_H__ 00025 #define __CCACHE_H__ 00026 00027 #include <string> 00028 #include <vector> 00029 00030 using namespace std; 00031 using std::vector; 00032 class CCache { 00033 00034 public: 00035 00039 CCache(); 00040 00041 00045 CCache(time_t iStartDate, vector <string> vList); 00046 00047 00051 virtual ~CCache(); 00052 00060 vector <string> getCacheIds(); 00061 00068 time_t getCacheStartDate(); 00069 00070 00077 void setCacheStartDate(time_t startDate); 00078 00085 void setCacheIds(vector <string> vList); 00086 00091 string getCommaSeperatedIdString(); 00092 00093 private: 00094 00095 time_t iStartDate; 00096 vector <string> vListId; 00097 00098 }; 00099 00100 #endif
1.5.6