homesync/contentmanager/cmserver/cmstoremanager/inc/cmsmmsinfo.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 2008 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:  media server info class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __CMSMMSINFO_H
       
    21 #define __CMSMMSINFO_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26  /**
       
    27   *  Media server info class
       
    28   *
       
    29   *  @lib cmstoremanager.lib
       
    30   *
       
    31   *  @since S60 5.1
       
    32   */    
       
    33 NONSHARABLE_CLASS( CCmSmMsInfo ): public CBase
       
    34     {
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Two-phased constructor.
       
    39      * Creates new CCmSmMsInfo class
       
    40      *
       
    41      * @since S60 5.1
       
    42      * @param aUuid, server's uuid
       
    43      * @param aId, media server's id
       
    44      * @return  pointer to CCmSmMsInfo class
       
    45      */
       
    46     static CCmSmMsInfo* NewL( TDesC8& aUuid, TInt aId );
       
    47     
       
    48     /**
       
    49      * Two-phased constructor.
       
    50      * Creates new CCmSmMsInfo class
       
    51      *
       
    52      * @since S60 5.1
       
    53      * @param aUuid, server's uuid
       
    54      * @param aId, media server's id
       
    55      * @return  pointer to CCmSmMsInfo class
       
    56      */
       
    57     static CCmSmMsInfo* NewLC( TDesC8& aUuid, TInt aId );
       
    58     
       
    59     /**
       
    60      * Destructor.
       
    61      */
       
    62     virtual ~CCmSmMsInfo();        
       
    63 
       
    64 private: 
       
    65     
       
    66     /**
       
    67      * Performs the second phase construction.
       
    68      */
       
    69     void ConstructL( TDesC8& aUuid, TInt aId );
       
    70     
       
    71     /**
       
    72      * Performs the first phase of two phase construction.
       
    73      */
       
    74     CCmSmMsInfo( );
       
    75     
       
    76 public: 
       
    77     
       
    78     /**
       
    79      * Server's uuid
       
    80      */
       
    81     HBufC8* iUuid;                              // owned
       
    82     
       
    83     /**
       
    84      * Media server identifier
       
    85      */
       
    86     TInt iId;    
       
    87     };      
       
    88   
       
    89 #endif //  __CMSMMSINFO_H
       
    90