videoplayback/videoplaybackview/tsrc/testmpxvideoviewwrapper/stub/inc/mpxcollectionutility.h
changeset 44 518105d52e45
child 50 21fe8338c6bf
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
       
     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 MMPXCollectionObserver;
       
    25 
       
    26 class MMPXCollection
       
    27 {
       
    28     public:
       
    29         virtual TUid UidL() const = 0;
       
    30 
       
    31     public:
       
    32         TUid iUid;
       
    33 };
       
    34 
       
    35 class MMPXCollectionUtility
       
    36 {
       
    37     public:
       
    38         static MMPXCollectionUtility* NewL( MMPXCollectionObserver* aObs );
       
    39 
       
    40         virtual MMPXCollection& Collection() = 0;
       
    41 
       
    42         virtual void Close() = 0;
       
    43 };
       
    44 
       
    45 class CMPXCollectionUtility : public MMPXCollectionUtility,
       
    46                               public MMPXCollection
       
    47 {
       
    48     public:
       
    49         static CMPXCollectionUtility* NewL( MMPXCollectionObserver* aObs );
       
    50 
       
    51         ~CMPXCollectionUtility();
       
    52 
       
    53     private:
       
    54         CMPXCollectionUtility( MMPXCollectionObserver* aObs );
       
    55 
       
    56         void ConstructL();
       
    57 
       
    58     public:
       
    59         MMPXCollection& Collection();
       
    60 
       
    61         void Close();
       
    62 
       
    63         TUid UidL() const;
       
    64 };
       
    65 
       
    66 #endif //MMPXCOLLECTIONUTILITY_H
       
    67 
       
    68 // End of file