ipsservices/ipssossettings/src/ipssetuiitemextlink.cpp
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Implements class with user data and container for setting 
       
    15 *                 items.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "emailtrace.h"
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "ipssetutilsconsts.h"
       
    24 #include "ipssetutilsexception.h"
       
    25 #include "ipssetuiitemextlink.h"
       
    26 
       
    27 
       
    28 // ----------------------------------------------------------------------------
       
    29 // CIpsSetUiItemLinkExt::CIpsSetUiItemLinkExt()
       
    30 // ----------------------------------------------------------------------------
       
    31 CIpsSetUiItemLinkExt::CIpsSetUiItemLinkExt()
       
    32     :
       
    33     iUserValue( KErrNotFound )
       
    34     {
       
    35     FUNC_LOG;
       
    36     }
       
    37 
       
    38 // ----------------------------------------------------------------------------
       
    39 // CIpsSetUiItemLinkExt::ConstructL()
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 void CIpsSetUiItemLinkExt::ConstructL()
       
    43     {
       
    44     FUNC_LOG;
       
    45     CIpsSetUiItemLink::ConstructL();
       
    46     }
       
    47 
       
    48 // ----------------------------------------------------------------------------
       
    49 // CIpsSetUiItemLinkExt::CIpsSetUiItemLinkExt()
       
    50 // ----------------------------------------------------------------------------
       
    51 //
       
    52 CIpsSetUiItemLinkExt::~CIpsSetUiItemLinkExt()
       
    53     {
       
    54     FUNC_LOG;
       
    55     }
       
    56 
       
    57 // ----------------------------------------------------------------------------
       
    58 // CIpsSetUiItemLinkExt::NewL()
       
    59 // ----------------------------------------------------------------------------
       
    60 //
       
    61 CIpsSetUiItemLinkExt* CIpsSetUiItemLinkExt::NewL()
       
    62     {
       
    63     FUNC_LOG;
       
    64     CIpsSetUiItemLinkExt* self = NewLC();
       
    65     CleanupStack::Pop( self );
       
    66 
       
    67     return self;
       
    68     }
       
    69 
       
    70 // ----------------------------------------------------------------------------
       
    71 // CIpsSetUiItemsEditText::NewLC()
       
    72 // ----------------------------------------------------------------------------
       
    73 //
       
    74 CIpsSetUiItemLinkExt* CIpsSetUiItemLinkExt::NewLC()
       
    75     {
       
    76     FUNC_LOG;
       
    77     CIpsSetUiItemLinkExt* self =
       
    78         new ( ELeave ) CIpsSetUiItemLinkExt();
       
    79     CleanupStack::PushL( self );
       
    80     self->ConstructL();
       
    81 
       
    82     return self;
       
    83     }
       
    84 
       
    85 // ----------------------------------------------------------------------------
       
    86 // CIpsSetUiItemLinkExt::operator=()
       
    87 // ----------------------------------------------------------------------------
       
    88 //
       
    89 CIpsSetUiItemLinkExt& CIpsSetUiItemLinkExt::operator=(
       
    90     const CIpsSetUiItemLinkExt& aBaseItem )
       
    91     {
       
    92     FUNC_LOG;
       
    93     IPS_ASSERT_DEBUG( iItemLabel, ENullPointer, EItemText );
       
    94     IPS_ASSERT_DEBUG( aBaseItem.iItemLabel, ENullPointerInParam, EItemText );
       
    95     IPS_ASSERT_DEBUG( iUserText, ENullPointer, EItemText );
       
    96     IPS_ASSERT_DEBUG( aBaseItem.iUserText, ENullPointerInParam, EItemText );
       
    97 
       
    98     iItemFlags = aBaseItem.iItemFlags;
       
    99     iItemType = aBaseItem.iItemType;
       
   100     iItemLabel->Copy( *aBaseItem.iItemLabel );
       
   101     iItemId = aBaseItem.iItemId;
       
   102     iItemResourceId = aBaseItem.iItemResourceId;
       
   103     iItemLinkArray = aBaseItem.iItemLinkArray;
       
   104     iItemSettingText->Copy( *aBaseItem.iItemSettingText );
       
   105     iItemAppereance = aBaseItem.iItemAppereance;
       
   106     iUserValue = aBaseItem.Value();
       
   107 
       
   108     return *this;
       
   109     }
       
   110 
       
   111 // End of file
       
   112