D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/mainclientDll/src/include/outlook/ClientNote.h

00001  /*
00002  * Copyright (C) 2006-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_CLIENTNOTE
00020 #define INCL_CLIENTNOTE
00021 
00026 #include "outlook/defs.h"
00027 #include "outlook/ClientItem.h"
00028 
00029 #include <string>
00030 
00031 
00032 
00038 class ClientNote : public ClientItem {
00039 
00040 private:
00041 
00043     _NoteItemPtr     pNote;
00044 
00045     bool isSecureProperty (const std::wstring& propertyName);
00046     bool isComplexProperty(const std::wstring& propertyName);
00047 
00048     const std::wstring getSafeProperty   (const std::wstring& propertyName);
00049     const std::wstring getComplexProperty(const std::wstring& propertyName);
00050 
00051     int setComplexProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00052 
00053 public:
00054 
00056     ClientNote();
00057     ClientNote(const ClientNote& c);
00058     ClientNote operator=(const ClientNote& c);
00059 
00061     ~ClientNote();
00062 
00063 
00065     void setCOMPtr(_NoteItemPtr& ptr, const std::wstring& itemID);
00066     void setCOMPtr(_NoteItemPtr& ptr);
00067 
00068     // Returns a reference to the internal COM pointer.
00069     _NoteItemPtr& getCOMPtr();
00070 
00071     //
00072     // Client operations on the item.
00073     //
00074     int saveItem();
00075     int deleteItem();
00076     ClientItem* copyItem();
00077     //int moveItem(ClientFolder* destFolder);
00078 
00079 };
00080 
00083 #endif

Generated on Fri Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2