00001 /* 00002 * ============================================================================ 00003 * Name : MPbkFieldData.h 00004 * Part of : PbkEng.dll 00005 * 00006 * Description: 00007 * Interface classes for accessing Phonebook contact data. 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 __MPbkFieldData_H__ 00023 #define __MPbkFieldData_H__ 00024 00025 // INCLUDES 00026 #include <cntdef.h> // TStorageType 00027 #include "PbkFields.hrh" // TPbkFieldId 00028 00029 // FORWARD DECLARATIONS 00030 class MPbkFieldData; 00031 00032 // CLASS DECLARATION 00033 00037 class MPbkFieldDataArray 00038 { 00039 public: // Destructor 00040 virtual ~MPbkFieldDataArray() {} 00041 00042 public: // Abstract interface 00047 virtual TInt PbkFieldCount() const = 0; 00048 00054 virtual MPbkFieldData& PbkFieldAt(TInt aIndex) = 0; 00055 00060 virtual const MPbkFieldData& PbkFieldAt(TInt aIndex) const = 0; 00061 }; 00062 00069 class MPbkFieldData 00070 { 00071 public: // Destructor 00075 virtual ~MPbkFieldData() {} 00076 00077 public: // Interface 00082 virtual TStorageType PbkFieldType() const = 0; 00083 00087 virtual TPbkFieldId PbkFieldId() const = 0; 00088 00093 virtual TPtrC PbkFieldText() const = 0; 00094 00099 virtual TTime PbkFieldTime() const = 0; 00100 00101 }; 00102 00103 00104 // __MPbkFieldData_H__ 00105 #endif 00106 00107 // End of File