phoneapp/phoneuiutils/src/tphonecmdparambitmap.cpp
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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: Implementation of TPhoneCmdParamBitmap class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 
       
    21 #include "tphonecmdparambitmap.h"
       
    22 #include "phoneui.pan"  
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 
       
    26 // -----------------------------------------------------------------------------
       
    27 // TPhoneCmdParamBitmap::TPhoneCmdParamBitmap
       
    28 // C++ default constructor can NOT contain any code, that
       
    29 // might leave.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 EXPORT_C TPhoneCmdParamBitmap::TPhoneCmdParamBitmap() :
       
    33     TPhoneCommandParam(),
       
    34     iBitmap( NULL ),
       
    35     iMaskBitmap( NULL )
       
    36     {
       
    37     iParamId = EPhoneParamIdBitmap;
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------
       
    41 // TPhoneCmdParamBitmap::SetBitmap
       
    42 // Sets the Bitmap
       
    43 // (other items were commented in a header).
       
    44 // ---------------------------------------------------------
       
    45 //
       
    46 EXPORT_C void TPhoneCmdParamBitmap::SetBitmap( CFbsBitmap* aBitmap )
       
    47    {
       
    48    __ASSERT_DEBUG( aBitmap, Panic( EPhoneUtilsParameterNotInitialized ) );
       
    49    iBitmap = aBitmap;
       
    50    }
       
    51 
       
    52 // ---------------------------------------------------------
       
    53 // TPhoneCmdParamBitmap::Bitmap
       
    54 // Returns the Bitmap
       
    55 // (other items were commented in a header).
       
    56 // ---------------------------------------------------------
       
    57 //
       
    58 EXPORT_C CFbsBitmap* TPhoneCmdParamBitmap::Bitmap() const
       
    59    {
       
    60    __ASSERT_DEBUG( iBitmap, Panic( EPhoneUtilsInvariant ) );
       
    61    return iBitmap;
       
    62    }
       
    63 
       
    64 // ---------------------------------------------------------
       
    65 // TPhoneCmdParamBitmap::SetMaskBitmap
       
    66 // Sets the mask bitmap
       
    67 // (other items were commented in a header).
       
    68 // ---------------------------------------------------------
       
    69 //
       
    70 EXPORT_C void TPhoneCmdParamBitmap::SetMaskBitmap( CFbsBitmap* aMaskBitmap )
       
    71    {
       
    72    __ASSERT_DEBUG( aMaskBitmap, Panic( EPhoneUtilsParameterNotInitialized ) );
       
    73    iMaskBitmap = aMaskBitmap;
       
    74    }
       
    75 
       
    76 // ---------------------------------------------------------
       
    77 // TPhoneCmdParamBitmap::MaskBitmap
       
    78 // Returns the mask bitmap
       
    79 // (other items were commented in a header).
       
    80 // ---------------------------------------------------------
       
    81 //
       
    82 EXPORT_C CFbsBitmap* TPhoneCmdParamBitmap::MaskBitmap() const
       
    83    {
       
    84    return iMaskBitmap;
       
    85    }
       
    86 
       
    87 
       
    88 //  End of File