videocollection/videocollectionview/src/videocollectionviewplugin.cpp
changeset 62 0e1e938beb1a
parent 47 45e72b57a2fd
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
    13 *
    13 *
    14 * Description:   VideoCollectionViewPlugin class implementation
    14 * Description:   VideoCollectionViewPlugin class implementation
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 // Version : %version: 24 %
    18 // Version : %version: 25 %
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <xqplugin.h>
    21 #include <xqplugin.h>
    22 #include <xqserviceutil.h>
       
    23 #include <hbaction.h>
    22 #include <hbaction.h>
    24 #include <hbapplication.h>
    23 #include <hbapplication.h>
    25 #include <hbinstance.h>
    24 #include <hbinstance.h>
    26 #include <mpxitemid.h>
    25 #include <mpxitemid.h>
    27 
    26 
    28 #include "videoservices.h"
    27 #include "videoservices.h"
    29 #include "vcxmyvideosdefs.h"
    28 #include "vcxmyvideosdefs.h"
    30 #include "videocollectionviewplugin.h"
    29 #include "videocollectionviewplugin.h"
    31 #include "videolistview.h"
    30 #include "videolistview.h"
    32 #include "videocollectionuiloader.h"
    31 #include "videocollectionuiloader.h"
       
    32 #include "videocollectionviewutils.h"
    33 #include "mpxhbvideocommondefs.h"
    33 #include "mpxhbvideocommondefs.h"
    34 #include "videocollectiontrace.h"
    34 #include "videocollectiontrace.h"
    35 
    35 
    36 // ---------------------------------------------------------------------------
    36 // ---------------------------------------------------------------------------
    37 // Constructor
    37 // Constructor
    38 // ---------------------------------------------------------------------------
    38 // ---------------------------------------------------------------------------
    39 //
    39 //
    40 VideoCollectionViewPlugin::VideoCollectionViewPlugin()
    40 VideoCollectionViewPlugin::VideoCollectionViewPlugin()
    41     : mUiLoader( 0 )
    41     : mUiLoader( 0 )
    42     , mView( 0 )
    42     , mView( 0 )
       
    43     , mUiUtils( VideoCollectionViewUtils::instance() )
    43     , mActivated( false )
    44     , mActivated( false )
    44     , mVideoServices( 0 )
    45     , mVideoServices( 0 )
    45 {
    46 {
    46 	FUNC_LOG;
    47 	FUNC_LOG;
    47 }
    48 }
    71             mUiLoader = new VideoCollectionUiLoader();
    72             mUiLoader = new VideoCollectionUiLoader();
    72         }
    73         }
    73 
    74 
    74         mUiLoader->reset();
    75         mUiLoader->reset();
    75         
    76         
    76         mUiLoader->setIsService(XQServiceUtil::isService());
    77         mUiUtils.setIsService();
       
    78         
       
    79         mUiLoader->setIsService(mUiUtils.isService());
    77 
    80 
    78 		bool ok(false);
    81 		bool ok(false);
    79 
    82 
    80 		mUiLoader->load(DOCML_VIDEOCOLLECTIONVIEW_FILE, &ok);
    83 		mUiLoader->load(DOCML_VIDEOCOLLECTIONVIEW_FILE, &ok);
    81 	    
    84 	    
   158     {
   161     {
   159         HbMainWindow *wnd = mView->mainWindow();
   162         HbMainWindow *wnd = mView->mainWindow();
   160         if(wnd)
   163         if(wnd)
   161         {
   164         {
   162             TMPXItemId itemId = TMPXItemId::InvalidId();
   165             TMPXItemId itemId = TMPXItemId::InvalidId();
   163             bool isService = XQServiceUtil::isService();
   166             bool isService = mUiUtils.isService();
   164             if (isService)
   167             if (isService)
   165             {
   168             {
   166                 if(!mVideoServices)
   169                 if(!mVideoServices)
   167                 {
   170                 {
   168                     mVideoServices = VideoServices::instance();
   171                     mVideoServices = VideoServices::instance();