videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/mpxcollectionutility.h
changeset 52 e3cecb93e76a
equal deleted inserted replaced
47:45e72b57a2fd 52:e3cecb93e76a
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Interface to collections
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MMPXCOLLECTIONUTILITY_H
       
    20 #define MMPXCOLLECTIONUTILITY_H
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 class CMPXCollectionPath;
       
    25 class MMPXCollectionObserver;
       
    26 
       
    27 class MMPXCollection
       
    28 {
       
    29     public:
       
    30         virtual TUid UidL() const = 0;
       
    31 
       
    32         virtual CMPXCollectionPath* PathL() = 0;
       
    33 
       
    34     public:
       
    35         TUid iUid;
       
    36 };
       
    37 
       
    38 class MMPXCollectionUtility
       
    39 {
       
    40     public:
       
    41         static MMPXCollectionUtility* NewL( MMPXCollectionObserver* aObs );
       
    42 
       
    43         virtual MMPXCollection& Collection() = 0;
       
    44 
       
    45         virtual void Close() = 0;
       
    46 };
       
    47 
       
    48 class CMPXCollectionUtility : public MMPXCollectionUtility,
       
    49                               public MMPXCollection
       
    50 {
       
    51     public:
       
    52         static CMPXCollectionUtility* NewL( MMPXCollectionObserver* aObs );
       
    53 
       
    54         ~CMPXCollectionUtility();
       
    55 
       
    56     private:
       
    57         CMPXCollectionUtility( MMPXCollectionObserver* aObs );
       
    58 
       
    59         void ConstructL();
       
    60 
       
    61     public:
       
    62         MMPXCollection& Collection();
       
    63 
       
    64         void Close();
       
    65 
       
    66         TUid UidL() const;
       
    67 
       
    68         CMPXCollectionPath* PathL();
       
    69 };
       
    70 
       
    71 #endif //MMPXCOLLECTIONUTILITY_H
       
    72 
       
    73 // End of file