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 00020 #ifndef INCL_SYNC_SOURCE_EVENT 00021 #define INCL_SYNC_SOURCE_EVENT 00022 00024 #include "event/BaseEvent.h" 00025 #include "event/constants.h" 00026 00027 00028 class SyncSourceEvent : public BaseEvent { 00029 00030 // source URI 00031 char* sourceURI; 00032 00033 // Sync Mode 00034 int syncMode; 00035 00036 // source name 00037 char* name; 00038 00039 // data 00040 int data; 00041 00042 00043 public: 00044 00045 // Constructor 00046 SyncSourceEvent(const char* uri, const char* sourcename, int mode, int data, int type, unsigned long date); 00047 00048 // Destructor 00049 ~SyncSourceEvent(); 00050 00051 // get the source URI 00052 const char* getSourceURI() const; 00053 00054 // get the sync mode 00055 int getSyncMode(); 00056 00057 // get the source name 00058 const char* getSourceName() const; 00059 00060 // get the data 00061 int getData(); 00062 }; 00064 #endif