mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/inc/cgetobjectreferences.h
branchRCL_3
changeset 34 e257e2b6459d
parent 0 a2952bb97e68
equal deleted inserted replaced
30:6f9f6e99a23e 34:e257e2b6459d
    18 
    18 
    19 #ifndef CGETOBJECTREFERENCES_H
    19 #ifndef CGETOBJECTREFERENCES_H
    20 #define CGETOBJECTREFERENCES_H
    20 #define CGETOBJECTREFERENCES_H
    21 
    21 
    22 #include "crequestprocessor.h"
    22 #include "crequestprocessor.h"
       
    23 #include "cmmmtpdpperflog.h"
    23 
    24 
    24 // forward declaration
    25 // forward declaration
    25 class CMTPTypeArray;
    26 class CMTPTypeArray;
    26 class MMmMtpDpConfig;
    27 class MMmMtpDpConfig;
    27 
    28 
    60     * @param aFramework    The data provider framework
    61     * @param aFramework    The data provider framework
    61     * @param aConnection   The connection from which the request comes
    62     * @param aConnection   The connection from which the request comes
    62     * @param aWrapper      Medadata access interface
    63     * @param aWrapper      Medadata access interface
    63     */
    64     */
    64     CGetObjectReferences( MMTPDataProviderFramework& aFramework,
    65     CGetObjectReferences( MMTPDataProviderFramework& aFramework,
    65         MMTPConnection& aConnection );
    66         MMTPConnection& aConnection,
       
    67         MMmMtpDpConfig& aDpConfig );
    66 
    68 
    67     /**
    69     /**
    68     * Two-phase construction
    70     * Two-phase construction
    69     */
    71     */
    70     void ConstructL();
    72     void ConstructL();
    71 
    73 
       
    74     /**
       
    75     * Add references of specified object into reference db,
       
    76     * for the insertion delayed until the first time it was queried by pc
       
    77     * @param aRefOwnerSuid, specify the reference owner of which references should be added into db
       
    78     * @param aReferences, suid array which stored references
       
    79     */
       
    80     void AddReferencesL( const TDesC& aRefOwnerSuid,
       
    81         CDesCArray& aReferences );
       
    82 
    72 private:
    83 private:
    73     // Array object to store object references
    84     // Array object to store object references
    74     CMTPTypeArray* iReferences;
    85     CMTPTypeArray* iReferences;
       
    86     MMmMtpDpConfig& iDpConfig;
       
    87 
       
    88 #if defined(_DEBUG) || defined(MMMTPDP_PERFLOG)
       
    89     CMmMtpDpPerfLog* iPerfLog;
       
    90 #endif
    75 
    91 
    76     };
    92     };
    77 
    93 
    78 #endif // CGETOBJECTREFERENCES_H
    94 #endif // CGETOBJECTREFERENCES_H