homesync/contentmanager/cmserver/cmstoremanager/src/cmsmmsinfo.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:29:11 +0300
branchRCL_3
changeset 28 cdcbf344a1d3
parent 0 7f85d04be362
permissions -rw-r--r--
Revision: 201012 Kit: 201035

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Store media server info class
*
*/


#include "cmsmmsinfo.h"
#include "msdebug.h"

// ---------------------------------------------------------------------------
// CCmSmMsInfo::NewL
// ---------------------------------------------------------------------------
// 
CCmSmMsInfo* CCmSmMsInfo::NewL( TDesC8& aUuid, TInt aId )
    {
    LOG(_L("[STORE MNGR]\t CCmSmMsInfo::NewL"));
    
    CCmSmMsInfo* self = CCmSmMsInfo::NewLC( aUuid, aId );
    CleanupStack::Pop( self );
    return self;
    }

// ---------------------------------------------------------------------------
// CCmSmMsInfo::NewLC
// ---------------------------------------------------------------------------
//     
CCmSmMsInfo* CCmSmMsInfo::NewLC( TDesC8& aUuid, TInt aId )
    {
    LOG(_L("[STORE MNGR]\t CCmSmMsInfo::NewLC"));
    
    CCmSmMsInfo* self = new ( ELeave ) CCmSmMsInfo();
    CleanupStack::PushL( self );
    self->ConstructL( aUuid, aId );    
    return self;  
    }    

// ---------------------------------------------------------------------------
// CCmSmMsInfo::~CCmSmMsInfo
// ---------------------------------------------------------------------------
// 
CCmSmMsInfo::~CCmSmMsInfo()
    {
    LOG(_L("[STORE MNGR]\t CCmSmMsInfo::~CCmSmMsInfo"));
    
    delete iUuid;      
    }
    
// ---------------------------------------------------------------------------
// CCmSmMsInfo::CCmSmMsInfo
// ---------------------------------------------------------------------------
//            
CCmSmMsInfo::CCmSmMsInfo()
    {
    LOG(_L("[STORE MNGR]\t CCmSmMsInfo::CCmSmMsInfo"));
    }

// ---------------------------------------------------------------------------
// CCmSmMsInfo::Construct
// ---------------------------------------------------------------------------
//  
void CCmSmMsInfo::ConstructL( TDesC8& aUuid, TInt aId )
    {
    LOG(_L("[STORE MNGR]\t CCmSmMsInfo::ConstructL"));
    
    iUuid = aUuid.AllocL();
    iId = aId;                                     
    } 
                        
// End of file