src/include/common/event/SyncSourceEvent.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_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

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