diff -r f345bda72bc4 -r 43e37759235e Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_contact_views_8h-source.html --- a/Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/_contact_views_8h-source.html Tue Mar 30 11:56:28 2010 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ - -
-00001 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). -00002 // All rights reserved. -00003 // This component and the accompanying materials are made available -00004 // under the terms of "Eclipse Public License v1.0" -00005 // which accompanies this distribution, and is available -00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". -00007 // -00008 // Initial Contributors: -00009 // Nokia Corporation - initial contribution. -00010 // -00011 // Contributors: -00012 // -00013 // Description: -00014 // -00015 -00016 #if (!defined __CONTACTVIEWS_H__) -00017 #define __CONTACTVIEWS_H__ -00018 -00019 #include <cntdb.h> -00020 #include <cntview.h> -00021 #include <cntviewbase.h> -00022 -00023 -00024 // CExampleViews is an active object and a contact view observer. -00025 class CExampleViews : public CActive , public MContactViewObserver -00026 { -00027 public: -00028 static CExampleViews* NewL(CContactDatabase& aDb); -00029 ~CExampleViews(); -00030 void Start(); -00031 -00032 private: -00033 CExampleViews(CContactDatabase& aDb); -00034 void ConstructL(); -00035 -00036 // CActive implementation -00037 void RunL(); -00038 void DoCancel(); -00039 -00040 // MContactViewObserver implementation -00041 virtual void HandleContactViewEvent(const CContactViewBase& aView, const TContactViewEvent& aEvent); -00042 -00043 CContactFindView* CreateFindViewL(); -00044 void HandleViewEventL(const CContactViewBase& aView); -00045 -00046 private: -00047 // Pointer to the contact database -00048 CContactDatabase& iDb; -00049 // Fields to use in the views -00050 RContactViewSortOrder iSortOrder; -00051 // Pointer to the local view -00052 CContactLocalView* iLocalView; -00053 // Pointer to the find view -00054 CContactFindView* iFindView; -00055 // Pointer to the filter view -00056 CContactFilteredView* iFilterView; -00057 // Used to test the number of views created -00058 TInt iNumViewsCreated; -00059 }; -00060 -00061 -00062 #endif // __CONTACTVIEWS_H__ -