homescreenplugins/videochplugin/inc/videocontentharvesterplugin.h
branchRCL_3
changeset 10 112a725ff2c2
parent 9 5294c000a26d
child 11 8970fbd719ec
equal deleted inserted replaced
9:5294c000a26d 10:112a725ff2c2
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    CVcxNsContentHarvesterPlugin class declaration*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef _VIDEOCONTENTHARVESTERPLUGIN_H
       
    21 #define _VIDEOCONTENTHARVESTERPLUGIN_H 
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <e32cmn.h>
       
    26 #include <contentharvesterplugin.h>
       
    27 #include <contentharvesterpluginuids.hrh>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CVcxNsChMCategoryListener;
       
    32 class MLiwInterface;
       
    33 class CLiwDefaultMap;
       
    34 class CVcxNsContentHarvesterMpxClient;
       
    35 class CVcxNsContentHarvesterServiceListener;
       
    36 class CVcxNsNotificationLauncher;
       
    37 class CVcxNsChPublishableData;
       
    38 class CVcxNsChPublisher;
       
    39 class CVcxNsChLastWatchedUpdater;
       
    40 class CVcxNsChIptvServerClient;
       
    41 
       
    42 // CLASS DECLARATION
       
    43 /**
       
    44  *  Ns Content Harvester plugin
       
    45  *
       
    46  *  @lib vcxnscontentharvesterplugin.dll
       
    47  *  @since S60 v5.0
       
    48  */
       
    49 
       
    50 class CVcxNsContentHarvesterPlugin : public CContentHarvesterPlugin
       
    51     {
       
    52     
       
    53 public:
       
    54 
       
    55     static CVcxNsContentHarvesterPlugin* NewL( MLiwInterface* aCPSInterface );
       
    56     
       
    57     /**
       
    58      * Destructor
       
    59      * 
       
    60      */
       
    61     virtual ~CVcxNsContentHarvesterPlugin();
       
    62 
       
    63     /**
       
    64      * NotificationLauncher getter
       
    65      * 
       
    66      * @return CVcxNsNotificationLauncher* pointer to notification launcher
       
    67      */
       
    68     CVcxNsNotificationLauncher* NotificationLauncher();
       
    69 
       
    70     /**
       
    71      * From CContentHarvesterPlugin.
       
    72      *This function updates information to CP database during the phone bootup
       
    73      * 
       
    74      * 
       
    75      */
       
    76     void UpdateL();
       
    77 
       
    78 private:
       
    79     
       
    80     /**
       
    81      * Symbian 2nd phase constructor
       
    82      * 
       
    83      */
       
    84     void ConstructL();
       
    85 
       
    86     /**
       
    87      * C++ constructor
       
    88      * 
       
    89      * @param aCPSInterface interface to service api (content publishing)
       
    90      */
       
    91     CVcxNsContentHarvesterPlugin( MLiwInterface* aCPSInterface );
       
    92     
       
    93 
       
    94 private: // new methods
       
    95     
       
    96     /**
       
    97      * Internal helper method to update last watched data content 
       
    98      *  during the phone bootup.
       
    99      * 
       
   100      */
       
   101     void UpdateLastWatchedL();
       
   102     
       
   103     /**
       
   104      * Internal helper method to update preloaded video data content 
       
   105      * during the phone bootup.
       
   106      * 
       
   107      */
       
   108     void UpdatePreloadedVideoL();
       
   109     
       
   110     /**
       
   111     * Internal helper method to update predefined service data content 
       
   112     * during the phone bootup.
       
   113     * 
       
   114     */
       
   115     void UpdatePredefinedServiceL();
       
   116     
       
   117     
       
   118 private: // DATA
       
   119        
       
   120     /**
       
   121      * CVcxNsContentHarvesterMpxClientOwned.
       
   122      */    
       
   123     CVcxNsContentHarvesterMpxClient* iMpxClient;
       
   124     
       
   125     /**
       
   126      * CVcxNsContentHarvesterServiceListener. Owned.
       
   127      */    
       
   128     CVcxNsContentHarvesterServiceListener* iServiceListener;
       
   129     
       
   130     /**
       
   131      * CVcxNsNotificationLauncher. Owned.
       
   132      */    
       
   133     CVcxNsNotificationLauncher* iNotificationLauncer;
       
   134 
       
   135     /**
       
   136      * Interface to content publishing gotten from the 
       
   137      * ContentHarvester server, not owned
       
   138      */
       
   139     MLiwInterface* iCPSInterface;
       
   140     
       
   141     /**
       
   142      * Publishable data container. Owned. 
       
   143      */
       
   144     CVcxNsChPublishableData* iPublishableData;
       
   145     
       
   146     /**
       
   147      * Publisher object used to publish data from CVcxNsChPublishableData
       
   148      * to service api. Owned. 
       
   149      */
       
   150     CVcxNsChPublisher* iPublisher;
       
   151   
       
   152     /**
       
   153      * Updater class for the last watched item. Owned.
       
   154      */
       
   155     CVcxNsChLastWatchedUpdater* iLwUpdater;
       
   156     
       
   157     /**
       
   158      * IPTV server interface. Owned.
       
   159      */
       
   160     CVcxNsChIptvServerClient* iIptvServerClient;
       
   161     
       
   162     };
       
   163 
       
   164 #endif // _VIDEOCONTENTHARVESTERPLUGIN_H