00001 /* 00002 * ============================================================================ 00003 * Name : CPbkMultipleEntryFetchDlg from CPbkMultipleEntryFetchDlg.h 00004 * Part of : PbkView.dll 00005 * 00006 * Description: 00007 * Phonebook Multiple Entry Fetch API. 00008 * Version: 00009 * 00010 * Copyright (C) 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================ 00020 */ 00021 00022 #ifndef __CPbkMultipleEntryFetchDlg_H__ 00023 #define __CPbkMultipleEntryFetchDlg_H__ 00024 00025 // INCLUDES 00026 #include <e32base.h> // CBase 00027 00028 // FORWARD DECLARATIONS 00029 class CPbkContactEngine; 00030 class CContactViewBase; 00031 class CContactIdArray; 00032 class CPbkFetchDlg; 00033 class MObjectProvider; 00034 class MPbkFetchDlgSelection; 00035 00036 00037 // CLASS DECLARATION 00038 00045 class CPbkMultipleEntryFetchDlg : public CBase 00046 { 00047 public: // Types 00051 class TParams 00052 { 00053 public: // Input parameters 00059 CContactViewBase* iContactView; 00060 00061 public: // Output parameters 00067 CContactIdArray* iMarkedEntries; 00068 00069 public: // Additional input parameters 00074 TInt iCbaId; 00075 00080 MPbkFetchDlgSelection* iFetchSelection; 00081 00082 public: // Interface 00086 IMPORT_C TParams(); 00087 00088 // Compiler-generated destructor is ok for this class 00089 00094 IMPORT_C operator TCleanupItem(); 00095 00096 private: // Implementation 00097 static void Cleanup(TAny* aPtr); 00098 00099 private: // Unimplemented functions 00101 TParams(const TParams&); 00103 TParams& operator=(const TParams&); 00104 }; 00105 00106 public: // Interface 00114 IMPORT_C static CPbkMultipleEntryFetchDlg* NewL 00115 (TParams& aParams, CPbkContactEngine& aEngine); 00116 00120 IMPORT_C void SetMopParent(MObjectProvider* aParent); 00121 00131 IMPORT_C TInt ExecuteLD(); 00132 00136 ~CPbkMultipleEntryFetchDlg(); 00137 00138 private: // Implementation 00139 CPbkMultipleEntryFetchDlg(TParams& aParams, CPbkContactEngine& aEngine); 00140 void ConstructL(); 00141 static void Panic(TInt aReason); 00142 00143 private: // Data 00145 TParams& iParams; 00147 CPbkFetchDlg* iFetchDlg; 00149 CPbkContactEngine& iPbkEngine; 00151 TBool* iDestroyedPtr; 00153 MObjectProvider* iObjectProvider; 00154 }; 00155 00156 // __CPbkMultipleEntryFetchDlg_H__ 00157 #endif 00158 00159 // End of File