homescreensrv_plat/ai_plugin_management_api/inc/hspublisherinfo.inl
branchRCL_3
changeset 8 d0529222e3f0
equal deleted inserted replaced
4:1a2a00e78665 8:d0529222e3f0
       
     1 /*
       
     2 * Copyright (c) 2005-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: Inline function implementations for hspublisherinfo.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _HSPUBLISHERINFO_INL
       
    20 #define _HSPUBLISHERINFO_INL
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // THsPublisherInfo::THsPublisherInfo
       
    24 //
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 inline THsPublisherInfo::THsPublisherInfo()
       
    28     : iUid( TUid::Null() ), iName( KNullDesC ), iNamespace( KNullDesC8 )             
       
    29     {
       
    30     }
       
    31 
       
    32 // ---------------------------------------------------------------------------
       
    33 // THsPublisherInfo::THsPublisherInfo
       
    34 //
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 inline THsPublisherInfo::THsPublisherInfo( const TUid& aUid, 
       
    38     const TDesC& aName, const TDesC8& aNamespace )
       
    39     {    
       
    40     iUid = TUid::Uid( aUid.iUid );
       
    41     iName.Copy( aName );
       
    42     iNamespace.Copy( aNamespace );    
       
    43     }
       
    44     
       
    45 // ---------------------------------------------------------------------------
       
    46 // THsPublisherInfo::operator=
       
    47 //
       
    48 // ---------------------------------------------------------------------------
       
    49 //
       
    50 inline THsPublisherInfo& THsPublisherInfo::operator= ( 
       
    51     const THsPublisherInfo& aInfo )
       
    52     {
       
    53     iUid = TUid::Uid( aInfo.iUid.iUid );
       
    54     iName.Copy( aInfo.iName );
       
    55     iNamespace.Copy( aInfo.iNamespace );   
       
    56 
       
    57     return *this;  
       
    58     }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // THsPublisherInfo::operator==
       
    62 //
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 inline TBool THsPublisherInfo::operator== ( 
       
    66     const THsPublisherInfo& aInfo ) const
       
    67     {
       
    68     if( iUid == aInfo.iUid && 
       
    69         iName == aInfo.iName &&
       
    70         iNamespace == aInfo.iNamespace )
       
    71         {
       
    72         return ETrue;
       
    73         }
       
    74         
       
    75     return EFalse;                                       
       
    76     }
       
    77 
       
    78 // ---------------------------------------------------------------------------
       
    79 // THsPublisherInfo::Uid
       
    80 //
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 inline TUid THsPublisherInfo::Uid() const
       
    84     {
       
    85     return iUid;
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // THsPublisherInfo::Name
       
    90 //
       
    91 // ---------------------------------------------------------------------------
       
    92 //
       
    93 inline const TDesC& THsPublisherInfo::Name() const
       
    94     {
       
    95     return iName;
       
    96     }
       
    97 
       
    98 // ---------------------------------------------------------------------------
       
    99 // THsPublisherInfo::Namespace
       
   100 //
       
   101 // ---------------------------------------------------------------------------
       
   102 //
       
   103 inline const TDesC8& THsPublisherInfo::Namespace() const
       
   104     {
       
   105     return iNamespace;
       
   106     }
       
   107 
       
   108 #endif  // _HSPUBLISHERINFO_INL
       
   109 
       
   110 // End of file