email/imum/Utils/Src/IMSSettingsItemAccessPoint.cpp
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     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:  IMSSettingsAccessPointItem.cpp
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <e32base.h>
       
    21 #include <muiuflags.h>
       
    22 
       
    23 #include "IMSSettingsItemAccessPoint.h"
       
    24 #include "ImumUtilsLogging.h"
       
    25 
       
    26 // EXTERNAL DATA STRUCTURES
       
    27 // EXTERNAL FUNCTION PROTOTYPES
       
    28 // CONSTANTS
       
    29 // MACROS
       
    30 // LOCAL CONSTANTS AND MACROS
       
    31 // MODULE DATA STRUCTURES
       
    32 // LOCAL FUNCTION PROTOTYPES
       
    33 // FORWARD DECLARATIONS
       
    34 
       
    35 // ============================ MEMBER FUNCTIONS ===============================
       
    36 
       
    37 // ----------------------------------------------------------------------------
       
    38 // CIMSSettingsAccessPointItem::CIMSSettingsAccessPointItem()
       
    39 // ----------------------------------------------------------------------------
       
    40 //
       
    41 CIMSSettingsAccessPointItem::CIMSSettingsAccessPointItem()
       
    42     :
       
    43     iIapRadioButton( KErrNotFound ),
       
    44     iIsWizard( EFalse )
       
    45     {
       
    46     IMUM_CONTEXT( CIMSSettingsAccessPointItem::CIMSSettingsAccessPointItem, 0, KLogUi );
       
    47 
       
    48     }
       
    49 
       
    50 // ----------------------------------------------------------------------------
       
    51 // CIMSSettingsAccessPointItem::~CIMSSettingsAccessPointItem()
       
    52 // ----------------------------------------------------------------------------
       
    53 //
       
    54 CIMSSettingsAccessPointItem::~CIMSSettingsAccessPointItem()
       
    55     {
       
    56     IMUM_CONTEXT( CIMSSettingsAccessPointItem::~CIMSSettingsAccessPointItem, 0, KLogUi );
       
    57 
       
    58     }
       
    59 
       
    60 // ----------------------------------------------------------------------------
       
    61 // CIMSSettingsAccessPointItem::ConstructL()
       
    62 // ----------------------------------------------------------------------------
       
    63 //
       
    64 void CIMSSettingsAccessPointItem::ConstructL()
       
    65     {
       
    66     IMUM_CONTEXT( CIMSSettingsAccessPointItem::ConstructL, 0, KLogUi );
       
    67 
       
    68     CMuiuSettingsLink::ConstructL();
       
    69     }
       
    70 
       
    71 // ----------------------------------------------------------------------------
       
    72 // CIMSSettingsAccessPointItem::NewL()
       
    73 // ----------------------------------------------------------------------------
       
    74 //
       
    75 CIMSSettingsAccessPointItem* CIMSSettingsAccessPointItem::NewL()
       
    76     {
       
    77     IMUM_STATIC_CONTEXT( CIMSSettingsAccessPointItem::NewL, 0, utils, KLogUi );
       
    78 
       
    79     CIMSSettingsAccessPointItem* self = NewLC();
       
    80     CleanupStack::Pop( self );
       
    81 
       
    82     return self;
       
    83     }
       
    84 
       
    85 // ----------------------------------------------------------------------------
       
    86 // CIMSSettingsAccessPointItem::NewLC()
       
    87 // ----------------------------------------------------------------------------
       
    88 //
       
    89 CIMSSettingsAccessPointItem* CIMSSettingsAccessPointItem::NewLC()
       
    90     {
       
    91     IMUM_STATIC_CONTEXT( CIMSSettingsAccessPointItem::NewLC, 0, utils, KLogUi );
       
    92 
       
    93     CIMSSettingsAccessPointItem* self =
       
    94         new ( ELeave ) CIMSSettingsAccessPointItem();
       
    95     CleanupStack::PushL( self );
       
    96     self->ConstructL();
       
    97 
       
    98     return self;
       
    99     }
       
   100 
       
   101 // ----------------------------------------------------------------------------
       
   102 // CIMSSettingsAccessPointItem::operator=()
       
   103 // ----------------------------------------------------------------------------
       
   104 //
       
   105 CIMSSettingsAccessPointItem& CIMSSettingsAccessPointItem::operator=(
       
   106     const CIMSSettingsAccessPointItem& aIapItem )
       
   107     {
       
   108     IMUM_CONTEXT( CIMSSettingsAccessPointItem::operator=, 0, KLogUi );
       
   109 
       
   110     iItemFlags = aIapItem.iItemFlags;
       
   111     iItemType = aIapItem.iItemType;
       
   112     iItemLabel->Copy( *aIapItem.iItemLabel );
       
   113     iItemId = aIapItem.iItemId;
       
   114     iItemResourceId = aIapItem.iItemResourceId;
       
   115     iItemLinkArray = aIapItem.iItemLinkArray;
       
   116     iItemSettingText->Copy( *aIapItem.iItemSettingText );
       
   117     iItemSubType = aIapItem.iItemSubType;
       
   118     iIapRadioButton = aIapItem.iIapRadioButton;
       
   119     iIap = aIapItem.iIap;
       
   120     iIsWizard = aIapItem.iIsWizard;
       
   121 
       
   122     return *this;
       
   123     }
       
   124 
       
   125 // End of File
       
   126