videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/mdequery.cpp
branchRCL_3
changeset 26 67eb01668b0e
parent 23 8f0df5c82986
equal deleted inserted replaced
23:8f0df5c82986 26:67eb01668b0e
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 #include "mdequery.h"
    19 #include "mdequery.h"
    20 
       
    21 #include "mdeorderrule.h"
    20 #include "mdeorderrule.h"
    22 #include "mdeinstanceitem.h"
    21 #include "mdeinstanceitem.h"
    23 #include "mdelogiccondition.h"
    22 #include "mdelogiccondition.h"
    24 #include "mdenamespacedef.h"
    23 #include "mdenamespacedef.h"
    25 
    24 
       
    25 #include "VcxMyVideosMdsDbTest.h"
       
    26 
    26 
    27 
    27 CMdEQuery::CMdEQuery(TQueryType aType, CMdESession& aSession, CMdENamespaceDef& aNamespaceDef)
    28 CMdEQuery::CMdEQuery(TQueryType aType, CMdESession& aSession, CMdENamespaceDef& aNamespaceDef)
    28         : iQueryId( 0 ), iSession(aSession), iNamespaceDef(aNamespaceDef), iType(aType), 
    29         : iQueryId( 0 ), iSession(aSession), iNamespaceDef(aNamespaceDef), iType(aType), 
    29           iResultMode(EQueryResultModeItem), iState(EStateNew), iError(KErrNone), 
    30           iResultMode(EQueryResultModeItem), iState(EStateNew), iError(KErrNone), 
    30           iObjectResult(NULL), iCountResult(0), iDistinctResults(NULL), iDestroyed(EFalse)
    31           iObjectResult(NULL), iCountResult(0), iDistinctResults(NULL), iDestroyed(EFalse)
   112     }
   113     }
   113 
   114 
   114 
   115 
   115 EXPORT_C TInt CMdEQuery::Count() const
   116 EXPORT_C TInt CMdEQuery::Count() const
   116     {
   117     {
       
   118     return test->querycountresult;
   117     }
   119     }
   118 
   120 
   119 EXPORT_C CMdEItem& CMdEQuery::ResultItem(TInt aIndex) const
   121 EXPORT_C CMdEItem& CMdEQuery::ResultItem(TInt aIndex) const
   120     {
   122     {
   121     }
   123     }