psln/pslnslidesetdialog/inc/pslnslidesetdrmverifier.h
changeset 37 89c890c70182
parent 34 6b5204869ed5
child 45 667edd0b8678
equal deleted inserted replaced
34:6b5204869ed5 37:89c890c70182
     1 /*
       
     2 * Copyright (c) 2006 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:  Verifies that selected files are valid from DRM point of view.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_PSLNSLIDESETDRMVERIFIER_H
       
    20 #define C_PSLNSLIDESETDRMVERIFIER_H
       
    21 
       
    22 
       
    23 #include <e32base.h>
       
    24 #include <badesca.h>
       
    25 #include <MMGFetchVerifier.h>
       
    26 
       
    27 class CDRMHelper;
       
    28 
       
    29 /**
       
    30  * Verifies that selected files are correct from DRM point of view.
       
    31  *
       
    32  *  @lib pslnslidesetdialog.dll
       
    33  *  @since S60 3.2
       
    34 */
       
    35 NONSHARABLE_CLASS( CPslnSlideSetDRMVerifier ) : 
       
    36     public CBase, public MMGFetchVerifier
       
    37     {
       
    38 public:
       
    39 
       
    40     /**
       
    41     * Two-phased constructor.
       
    42     * @param aType type of dialog.
       
    43     * @return new instance of CPslnSlideSetDRMVerifier.
       
    44     */
       
    45     static CPslnSlideSetDRMVerifier* NewL( TInt aType );
       
    46 
       
    47     /**
       
    48     * Destructor.
       
    49     */
       
    50     ~CPslnSlideSetDRMVerifier();
       
    51 
       
    52     /**
       
    53     * From MFLDFileObserver.
       
    54     */
       
    55     TBool VerifySelectionL( const MDesCArray* aSelectedFiles );
       
    56 
       
    57 private:
       
    58 
       
    59     // Shows error note.
       
    60     void ShowErrorNoteL( TInt  aResourceId  ) const;
       
    61 
       
    62     /**
       
    63     * C++ constructor.
       
    64     */
       
    65     CPslnSlideSetDRMVerifier(  TInt aType  );
       
    66 
       
    67     /**
       
    68     * By default Symbian 2nd phase constructor is private.
       
    69     */
       
    70     void ConstructL();
       
    71 
       
    72 private:    // Data
       
    73     
       
    74     /**
       
    75     * DRM helper.
       
    76     * Own.
       
    77     */
       
    78     CDRMHelper* iDRMHelper;
       
    79 
       
    80     /**
       
    81     * Type of slide set (wallpaper / screensaver).
       
    82     */
       
    83     TInt iType;
       
    84     };
       
    85 
       
    86 
       
    87 #endif // C_PSLNSLIDESETDRMVERIFIER_H