harvesterplugins/media/video/src/cpixmediavideodoc.cpp
changeset 2 208a4ba3894c
parent 0 ccd0fd43f247
child 5 3bc31ad99ee7
equal deleted inserted replaced
0:ccd0fd43f247 2:208a4ba3894c
    21 #include <mdccommon.h>
    21 #include <mdccommon.h>
    22 #include <mdeitem.h>
    22 #include <mdeitem.h>
    23 #include <mdeconstants.h>
    23 #include <mdeconstants.h>
    24 #include <mdeobjectdef.h>
    24 #include <mdeobjectdef.h>
    25 #include "harvesterserverlogger.h"
    25 #include "harvesterserverlogger.h"
       
    26 #include "OstTraceDefinitions.h"
       
    27 #ifdef OST_TRACE_COMPILER_IN_USE
       
    28 #include "cpixmediavideodocTraces.h"
       
    29 #endif
       
    30 
    26 
    31 
    27 // -----------------------------------------------------------------------------
    32 // -----------------------------------------------------------------------------
    28 // CCPIXDocFetcher::NewL()
    33 // CCPIXDocFetcher::NewL()
    29 // -----------------------------------------------------------------------------
    34 // -----------------------------------------------------------------------------
    30 //
    35 //
    81 //
    86 //
    82 CSearchDocument* CCPIXMediaVideoDoc::GetCpixDocumentL(const CMdEObject& aObject, 
    87 CSearchDocument* CCPIXMediaVideoDoc::GetCpixDocumentL(const CMdEObject& aObject, 
    83                                               const TDesC& aAppClass,
    88                                               const TDesC& aAppClass,
    84                                               CMdEObjectDef& aObjectDef)
    89                                               CMdEObjectDef& aObjectDef)
    85     {
    90     {
       
    91     OstTraceFunctionEntry0( CCPIXMEDIAVIDEODOC_GETCPIXDOCUMENTL_ENTRY );
    86     //Get basic document
    92     //Get basic document
    87     CPIXLOGSTRING("CCPIXMediaVideoDoc::GetCpixDocumentL()");
    93     CPIXLOGSTRING("CCPIXMediaVideoDoc::GetCpixDocumentL()");
    88     CSearchDocument* index_item = CCPIXDocFetcher::GetCpixDocumentL(aObject,aAppClass,aObjectDef);
    94     CSearchDocument* index_item = CCPIXDocFetcher::GetCpixDocumentL(aObject,aAppClass,aObjectDef);
    89     //URI and Excerpt is done add additional properties here 
    95     //URI and Excerpt is done add additional properties here 
    90     CMdEProperty* property(NULL);
    96     CMdEProperty* property(NULL);
   131     CMdETextProperty* textProperty = ( CMdETextProperty* ) property;
   137     CMdETextProperty* textProperty = ( CMdETextProperty* ) property;
   132     AddFiledtoDocumentL(*index_item,
   138     AddFiledtoDocumentL(*index_item,
   133                    MdeConstants::MediaObject::KCommentProperty,
   139                    MdeConstants::MediaObject::KCommentProperty,
   134                    textProperty->Value());
   140                    textProperty->Value());
   135        }
   141        }
       
   142     OstTraceFunctionExit0( CCPIXMEDIAVIDEODOC_GETCPIXDOCUMENTL_EXIT );
   136     return index_item;
   143     return index_item;
   137     }
   144     }
   138 
   145