ui/uiengine/drmutilitywrapper/inc/glxdrmutilitywrapper_p.h
changeset 45 863223ea6961
equal deleted inserted replaced
44:aa2fa096cbfb 45:863223ea6961
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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 "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:    
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLXDRMUTILITYWRAPPERPRIVATE_H
       
    19 #define GLXDRMUTILITYWRAPPERPRIVATE_H
       
    20 
       
    21 
       
    22 // forward decleration
       
    23 class GlxDRMUtilityWrapper;
       
    24 class CGlxDRMUtility;
       
    25 class QString;
       
    26 
       
    27 class GlxDRMUtilityWrapperPrivate
       
    28 {
       
    29 public:
       
    30     /*
       
    31      * Constructor
       
    32      */
       
    33     GlxDRMUtilityWrapperPrivate(GlxDRMUtilityWrapper* DRMUtilityWrapper);
       
    34 
       
    35     /*
       
    36      * Destructor
       
    37      */
       
    38     ~GlxDRMUtilityWrapperPrivate();
       
    39 
       
    40     /**
       
    41      * Check whether DRM rights are valid for specified item
       
    42      * is called before right is consumed and for all items (focused or unfocused).
       
    43      * 
       
    44      * @param aUri URI of the media item.
       
    45      * @param aCheckViewRights, check view rights if true, play if false
       
    46      * @return ETrue if valid rights exist for the media item.
       
    47      */
       
    48     bool ItemRightsValidityCheck(QString aUri, bool aCheckViewRights);
       
    49     
       
    50 //    /**
       
    51 //     * Check whether DRM rights are valid for specified item
       
    52 //     * is called before right is consumed and for all items (focused or unfocused).
       
    53 //     * 
       
    54 //     * @param filehandle of the media item.
       
    55 //     * @param aCheckViewRights, check view rights if true, play if false
       
    56 //     * @return ETrue if valid rights exist for the media item.
       
    57 //     */
       
    58 //    bool ItemRightsValidityCheckL(RFile& aFileHandle, TBool aCheckViewRights);
       
    59 //
       
    60 //    /**
       
    61 //     * Check whether DRM rights are valid for specified item
       
    62 //     * If the rights were just consumed, then allow to display
       
    63 //     * Otherwise, obtain current rights
       
    64 //     * is called after right is consumed and for only focused/displayed item.
       
    65 //     * 
       
    66 //     * @param aUri URI of the media item.
       
    67 //     * @param aCheckViewRights, check view rights if true, play if false
       
    68 //     * @return ETrue if valid rights exist for the media item.
       
    69 //     */
       
    70 //    bool DisplayItemRightsCheckL(const TDesC& aUri, TBool aCheckViewRights);
       
    71 //    
       
    72 //    /**
       
    73 //     * Check whether DRM rights are valid for specified item
       
    74 //     * If the rights were just consumed, then allow to display
       
    75 //     * Otherwise, obtain current rights
       
    76 //     * is called after right is consumed and for only focused/displayed item.
       
    77 //     * 
       
    78 //     * @param filehandle of the media item.
       
    79 //     * @param aCheckViewRights, check view rights if true, play if false
       
    80 //     * @return ETrue if valid rights exist for the media item.
       
    81 //     */
       
    82 //    bool DisplayItemRightsCheckL(RFile& aFileHandle, TBool aCheckViewRights);
       
    83 //    
       
    84     /**
       
    85       * Consume rights for specified item
       
    86       * Caches item so that a client has right to display the item
       
    87       *
       
    88       * @param aUri URI for item
       
    89       * @return ETrue to no error in rights consumption
       
    90       */
       
    91     bool ConsumeRights(QString aUri);
       
    92 //    
       
    93 //    /**
       
    94 //      * Consume rights for specified item
       
    95 //      * Caches item so that a client has right to display the item
       
    96 //      *
       
    97 //      * @param  Filehandle for item
       
    98 //      * @return ETrue to no error in rights consumption
       
    99 //      */
       
   100 //    bool ConsumeRightsL(RFile& aFileHandle);
       
   101 //
       
   102 //    /**
       
   103 //     * Clears Last Consumed Uri
       
   104 //     */
       
   105 //    void ClearLastConsumedItemUriL();
       
   106 //
       
   107 //    /**
       
   108 //     * Test whether a media item is OMA DRM 2.0 protected and has an associated
       
   109 //     * info URL.
       
   110 //     * @param aUri URI of the media item.
       
   111 //     * @return ETrue if it does.
       
   112 //     */
       
   113 //    bool CanShowInfoOnlineL(const TDesC& aUri);
       
   114 //
       
   115 //    /**
       
   116 //     * Open the associated info URL for a media item in the browser.
       
   117 //     * @param aUri URI of the media item.
       
   118 //     */
       
   119 //    void ShowInfoOnlineL(const TDesC& aUri);
       
   120 //
       
   121 //    /**
       
   122 //     * Test whether a media item can be set as automated content.     *
       
   123 //     * @param aUri URI of the media item.
       
   124 //     * @param aType Automated content type, eg. wallpaper.
       
   125 //     * @return ETrue if it can.
       
   126 //     */
       
   127 //    bool CanSetAsAutomatedL(const TDesC& aUri, TGlxDrmAutomatedType aType);
       
   128 //
       
   129 //    /**
       
   130 //     * Set a media item as automated content.
       
   131 //     * @param aUri URI of the media item.
       
   132 //     * @param aType Automated content type, eg. wallpaper.
       
   133 //     */
       
   134 //    void SetAsAutomatedL(const TDesC& aUri, TGlxDrmAutomatedType aType);
       
   135 //    
       
   136 //    /**
       
   137 //     * Show DRM details for specified item.
       
   138 //     * @param aUri URI of the media item.
       
   139 //     */
       
   140 //    void ShowDRMDetailsPaneL(const TDesC& aUri);
       
   141 //    
       
   142 //    /**
       
   143 //     * Show DRM details for specified item.
       
   144 //     * @param Filehandle of the media item.
       
   145 //     */
       
   146 //    void ShowDRMDetailsPaneL(RFile& aFileHandle);
       
   147 //    
       
   148 //    /**
       
   149 //      * Ask DRM manager if file is forward locked
       
   150 //      */
       
   151 //    bool IsForwardLockedL(const TDesC& aUri);
       
   152 //    
       
   153     /**
       
   154       * Show rights info
       
   155       * @param aUri URI of the media item.
       
   156       */
       
   157     void ShowRightsInfo(QString aUri);
       
   158     
       
   159 //    /**
       
   160 //      * Show rights info
       
   161 //      * @param filehandle of the media item.
       
   162 //      */
       
   163 //    void ShowRightsInfoL(RFile& aFileHandle);
       
   164 //    
       
   165 //    /**
       
   166 //      * Get size of thumbnail to be requested for DRM invalid item
       
   167 //      * @param aSize size of image
       
   168 //      * @return suggested thumbnail size (1/4 of original size)
       
   169 //      */
       
   170 //    TSize DRMThumbnailSize(TSize& aSize);
       
   171     
       
   172 private:
       
   173     GlxDRMUtilityWrapper* iDRMUtilityWrapper;
       
   174     CGlxDRMUtility* iDRMUtility;
       
   175 };
       
   176     
       
   177 #endif //GLXDRMUTILITYWRAPPERPRIVATE_H 
       
   178 // End of file