commondrm/drmutility/inc/drmuihandlingdata.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Data class for async operations in DrmRightInfoImpl -class 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CDRMUIHANDLINGDATA_H
       
    20 #define CDRMUIHANDLINGDATA_H
       
    21 
       
    22 //*** system include files go here:
       
    23 #include <e32base.h>
       
    24 #include <f32file.h>
       
    25 #include <caf/caftypes.h>
       
    26 #include <drmutilitytypes.h>
       
    27 
       
    28 //*** forward declarations go here:
       
    29 namespace ContentAccess
       
    30     {
       
    31     class CData;
       
    32     }
       
    33 
       
    34 namespace DRM 
       
    35 {
       
    36     
       
    37     //*** forward declarations go here:
       
    38     class MDrmAsyncObserver;
       
    39     class MDrmHandleErrorObserver;
       
    40     class MDrmUiCheckRightsObserver;
       
    41     
       
    42  /**
       
    43   *  DRM UI Handling Data storage class
       
    44   *
       
    45   *  @lib drmuihandlingimpl.lib
       
    46   *  @since S60 v5.0
       
    47   */
       
    48 NONSHARABLE_CLASS( CDrmUiHandlingData ) : public CBase
       
    49     {
       
    50 
       
    51 public: // Members
       
    52 
       
    53     /**
       
    54     * Creates a new CDrmUiHandlingData -object
       
    55     *
       
    56     * @since S60 v5.0
       
    57     * @return A functional CDrmUiHandlingData -object
       
    58     * @leave System wide or DRM specific error code
       
    59     */
       
    60     static CDrmUiHandlingData* NewL();
       
    61 
       
    62 
       
    63     /**
       
    64     * Creates a new CDrmUiHandlingData -object and leaves
       
    65     * it into the cleanup stack
       
    66     *
       
    67     * @since S60 v5.0
       
    68     * @return A functional CDrmUiHandlingData -object
       
    69     * @leave System wide or DRM specific error code
       
    70     */    
       
    71     static CDrmUiHandlingData* NewLC();
       
    72    
       
    73     /**
       
    74     * Destructor.
       
    75     */	
       
    76     ~CDrmUiHandlingData();
       
    77 
       
    78 public: // Variables:
       
    79     // Operation request status
       
    80     MDrmAsyncObserver* iObserver;
       
    81     
       
    82     // Operation identifier
       
    83     TInt iOperationId;
       
    84 
       
    85     // Operation code
       
    86     TInt iOperation;
       
    87     
       
    88     // File / content
       
    89     RFile* iFile;
       
    90     ContentAccess::CData* iFileData;
       
    91 
       
    92     // Intent
       
    93     ContentAccess::TIntent iIntent;
       
    94     
       
    95     // Error code
       
    96     TInt iError;
       
    97     
       
    98     // Error observer
       
    99     MDrmHandleErrorObserver* iErrorObserver;
       
   100     
       
   101     // Check rights observer
       
   102     MDrmUiCheckRightsObserver* iCheckRightsObserver;
       
   103     
       
   104     // Url type
       
   105     TDrmUiUrlType* iType;
       
   106     TDrmUiUrlType iTypeParam;
       
   107     
       
   108     // Queue Pointer:
       
   109     CDrmUiHandlingData* iNext;
       
   110 
       
   111 private:
       
   112 
       
   113 	/**
       
   114     * C++ default constructor.
       
   115     */
       
   116     CDrmUiHandlingData();
       
   117 
       
   118     /**
       
   119     * 2nd phase constructor
       
   120     */
       
   121     void ConstructL();
       
   122  
       
   123     };
       
   124 }
       
   125 
       
   126 #endif // CDRMUIHANDLINGDATA_H