examples/SFExamples/PIM/PopulateContact/inc/ContactWrite.h

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 #ifndef __ContactWrite_H_
00018 #define __ContactWrite_H_
00019 
00020 #include <CNTDB.H>
00021 #include <CNTITEM.H>
00022 #include <CNTFIELD.H>
00023 #include <CNTDEF.H>
00024 #include <CNTFLDST.H>
00025 
00026 class CContactWrite : public CBase
00027 {
00028 public:
00029 
00030         static CContactWrite* NewL();
00031         ~CContactWrite();
00032 
00033         void PopulateContactL();
00034         CContactDatabase& CntDatabase();
00035 
00036 private:
00037 
00038         void ConstructL();
00039         void PopulateOwnCardL();
00040         TContactItemId AddCardL(const TDesC& aFirstName, const TDesC& aLastName);
00041         void MoveContactL(TContactItemId aCntId, const TDesC& aNewGroup);
00042 
00043 private:
00044 
00045         CContactDatabase* iCntDb;
00046 
00047 };
00048 
00049 #endif // __ContactWrite_H_
00050 
00051 // End of File

Generated by  doxygen 1.6.2