commondrm/drmrightsmanagerui/inc/DrmViewItems.h
changeset 23 493788a4a8a4
parent 0 95b198f216e5
equal deleted inserted replaced
5:79d62d1d7957 23:493788a4a8a4
    26 
    26 
    27 /**
    27 /**
    28 * Class containing data for the items to be showed in the view
    28 * Class containing data for the items to be showed in the view
    29 */
    29 */
    30 class TItemData
    30 class TItemData
    31 	{
    31     {
    32     public:  // Constructor
    32     public:  // Constructor
    33         /**
    33         /**
    34         * C++ default constructor.
    34         * C++ default constructor.
    35         */      
    35         */
    36         TItemData();
    36         TItemData();
    37 
    37 
    38         /**
    38         /**
    39         * C++ default constructor.
    39         * C++ default constructor.
    40         * @param aIndexInArray          Index in array
    40         * @param aIndexInArray          Index in array
    47         * @param aFutureActivationTime  Time in the future when the RO will be
    47         * @param aFutureActivationTime  Time in the future when the RO will be
    48         *                               activated.
    48         *                               activated.
    49         * @param aUnlimitedRights       Rights unlimited or not
    49         * @param aUnlimitedRights       Rights unlimited or not
    50         * @param aIndividualConstraint  Individual constraint exists or not
    50         * @param aIndividualConstraint  Individual constraint exists or not
    51         * @param aUsageAllowed          Content usage allowed or not with current SIM
    51         * @param aUsageAllowed          Content usage allowed or not with current SIM
    52         */      
    52         */
    53         TItemData( const TInt aIndexInArray,
    53         TItemData( const TInt aIndexInArray,
    54                    const TDesC& aItemName, 
    54                    const TDesC& aItemName,
    55                    const TDesC& aItemFullName, 
    55                    const TDesC& aItemFullName,
    56                    const TInt aIndexIcon, 
    56                    const TInt aIndexIcon,
    57                    const TInt aTypeOfObject,
    57                    const TInt aTypeOfObject,
    58                    const TBool aContentCanBeSent,
    58                    const TBool aContentCanBeSent,
    59                    const TDesC8& aContentURI, 
    59                    const TDesC8& aContentURI,
    60                    const TTime& aFutureActivationTime,
    60                    const TTime& aFutureActivationTime,
    61                    const TBool aUnlimitedRights,
    61                    const TBool aUnlimitedRights,
    62                    const TBool aIndividualConstraint,
    62                    const TBool aIndividualConstraint,
    63                    const TBool aUsageAllowed );
    63                    const TBool aUsageAllowed );
    64 
    64 
    72         * @param aLocalID               Local ID of the object
    72         * @param aLocalID               Local ID of the object
    73         * @param aContentURI            Content URI of the object
    73         * @param aContentURI            Content URI of the object
    74         * @param aFutureActivationTime  Time in the future when the RO will be
    74         * @param aFutureActivationTime  Time in the future when the RO will be
    75         *                               activated.
    75         *                               activated.
    76         * @param aUnlimitedRights       Rights unlimited or not
    76         * @param aUnlimitedRights       Rights unlimited or not
    77         */      
    77         */
    78         TItemData( const TInt aIndexInArray,
    78         TItemData( const TInt aIndexInArray,
    79                    const TDesC& aItemName, 
    79                    const TDesC& aItemName,
    80                    const TDesC& aItemFullName, 
    80                    const TDesC& aItemFullName,
    81                    const TInt aIndexIcon, 
    81                    const TInt aIndexIcon,
    82                    const TInt aTypeOfObject,
    82                    const TInt aTypeOfObject,
    83                    const TUint32 aLocalID,
    83                    const TUint32 aLocalID,
    84                    const TDesC8& aContentURI, 
    84                    const TDesC8& aContentURI,
    85                    const TTime& aFutureActivationTime,
    85                    const TTime& aFutureActivationTime,
    86                    const TBool aUnlimitedRights,
    86                    const TBool aUnlimitedRights,
    87                    const TBool aIndividualConstraint,
    87                    const TBool aIndividualConstraint,
    88                    const TBool aUsageAllowed );
    88                    const TBool aUsageAllowed );
    89                    
    89 
    90 
    90 
    91 
    91 
    92     public:     // New functions
    92     public:     // New functions
    93         /**
    93         /**
    94         * Returns the index of the element in the array.
    94         * Returns the index of the element in the array.
   202         /**
   202         /**
   203         * Sets the unlimited rights attribute of the object.
   203         * Sets the unlimited rights attribute of the object.
   204         * @param aUnlimitedRights ETrue if unlimited rights.
   204         * @param aUnlimitedRights ETrue if unlimited rights.
   205         */
   205         */
   206         inline void SetUnlimitedRights( const TBool aUnlimitedRights );
   206         inline void SetUnlimitedRights( const TBool aUnlimitedRights );
   207         
   207 
   208         /**
   208         /**
   209         * Sets the individual constraint attribute.
   209         * Sets the individual constraint attribute.
   210         * @param aIndividualConstraint ETrue if individual constraint
   210         * @param aIndividualConstraint ETrue if individual constraint
   211         */
   211         */
   212         inline void SetIndividualConstraint( const TBool aIndividualConstraint );
   212         inline void SetIndividualConstraint( const TBool aIndividualConstraint );
   241 
   241 
   242         // Content URI of the object
   242         // Content URI of the object
   243         TBuf8<KMaxFileName> iContentURI;
   243         TBuf8<KMaxFileName> iContentURI;
   244 
   244 
   245         // Time in the future when the RO will be activated
   245         // Time in the future when the RO will be activated
   246         TTime iFutureActivationTime;    
   246         TTime iFutureActivationTime;
   247         
   247 
   248         // ETrue if unlimited rights
   248         // ETrue if unlimited rights
   249         TBool iUnlimitedRights;
   249         TBool iUnlimitedRights;
   250         
   250 
   251         // ETrue if individual constraint exists
   251         // ETrue if individual constraint exists
   252         TBool iIndividualConstraint;
   252         TBool iIndividualConstraint;
   253         
   253 
   254         // ETrue if content usage is allowed with current SIM
   254         // ETrue if content usage is allowed with current SIM
   255         TBool iUsageAllowed;
   255         TBool iUsageAllowed;
   256              
   256 
   257 	};
   257     };
   258 
   258 
   259 
   259 
   260 // Include inline functions
   260 // Include inline functions
   261 #include "DRMViewItems.inl"
   261 #include "DrmViewItems.inl"
   262 
   262 
   263 #endif
   263 #endif
   264 
   264 
   265 
   265 
   266 // End of File
   266 // End of File