homescreensrv_plat/sapi_menucontent/mcsservice/src/mcsbitmapbuffer.cpp
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c)  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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "mcsbitmapbuffer.h"
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // 
       
    23 // ---------------------------------------------------------------------------
       
    24 //  
       
    25 CMcsBitmapBuffer::CMcsBitmapBuffer( CFbsBitmap* aBitmapPtr )
       
    26                    : iBitmapPtr( aBitmapPtr )
       
    27     {
       
    28     }
       
    29 
       
    30 // ---------------------------------------------------------------------------
       
    31 // 
       
    32 // ---------------------------------------------------------------------------
       
    33 // 
       
    34 CMcsBitmapBuffer* CMcsBitmapBuffer::NewL( CFbsBitmap* aBitmapPtr )
       
    35     {
       
    36     return new( ELeave ) CMcsBitmapBuffer( aBitmapPtr );
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // 
       
    41 // ---------------------------------------------------------------------------
       
    42 // 
       
    43 CMcsBitmapBuffer::~CMcsBitmapBuffer()
       
    44     {
       
    45     Release();
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // 
       
    50 // ---------------------------------------------------------------------------
       
    51 // 
       
    52 TUint8* CMcsBitmapBuffer::Buf() const
       
    53     {
       
    54     return NULL;
       
    55     }
       
    56 
       
    57 // ---------------------------------------------------------------------------
       
    58 // 
       
    59 // ---------------------------------------------------------------------------
       
    60 // 
       
    61 TInt CMcsBitmapBuffer::Len()
       
    62     {
       
    63     return 0;
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // 
       
    68 // ---------------------------------------------------------------------------
       
    69 // 
       
    70 void CMcsBitmapBuffer::Release()
       
    71     {
       
    72     delete iBitmapPtr;
       
    73     iBitmapPtr = NULL;
       
    74     }
       
    75     
       
    76 // ---------------------------------------------------------------------------
       
    77 // 
       
    78 // ---------------------------------------------------------------------------
       
    79 // 
       
    80 TInt CMcsBitmapBuffer::TypeID()
       
    81     {
       
    82     return KLiwBufferBitmap;
       
    83     }
       
    84 
       
    85 // ---------------------------------------------------------------------------
       
    86 // 
       
    87 // ---------------------------------------------------------------------------
       
    88 // 
       
    89 CFbsBitmap* CMcsBitmapBuffer::AsBitmap()
       
    90     {
       
    91     return iBitmapPtr;
       
    92     }
       
    93 
       
    94 // End of file