homescreensrv_plat/ai_plugin_management_api/inc/hscontentpublisher.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 hscontentpublisher.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _HSCONTENTPUBLISHER_INL
       
    20 #define _HSCONTENTPUBLISHER_INL
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // CHsContentPublisher::NewL
       
    24 //
       
    25 // ---------------------------------------------------------------------------
       
    26 //
       
    27 inline CHsContentPublisher* CHsContentPublisher::NewL( 
       
    28     const THsPublisherInfo& aPublisherInfo )
       
    29     {
       
    30     TAny* ptr = REComSession::CreateImplementationL( aPublisherInfo.Uid(),
       
    31         _FOFF( CHsContentPublisher, iDestructKey ) );
       
    32 
       
    33     CHsContentPublisher* self =  
       
    34         reinterpret_cast< CHsContentPublisher*>( ptr );
       
    35     
       
    36     self->iPublisherInfo = aPublisherInfo;
       
    37     
       
    38     return self;
       
    39     }
       
    40 
       
    41 // ----------------------------------------------------------------------------
       
    42 // CHsContentPublisher::~CHsContentPublisher
       
    43 //
       
    44 // ----------------------------------------------------------------------------
       
    45 //
       
    46 inline CHsContentPublisher::~CHsContentPublisher()
       
    47     {
       
    48     REComSession::DestroyedImplementation( iDestructKey );
       
    49     }
       
    50 
       
    51 // ----------------------------------------------------------------------------
       
    52 // CHsContentPublisher::SetOnline
       
    53 //
       
    54 // ----------------------------------------------------------------------------
       
    55 //
       
    56 inline void CHsContentPublisher::SetOnline()
       
    57     {    
       
    58     }
       
    59 
       
    60 // ----------------------------------------------------------------------------
       
    61 // CHsContentPublisher::SetOffline
       
    62 //
       
    63 // ----------------------------------------------------------------------------
       
    64 //
       
    65 inline void CHsContentPublisher::SetOffline()
       
    66     {    
       
    67     }
       
    68 
       
    69 // ----------------------------------------------------------------------------
       
    70 // CHsContentPublisher::SetProperty
       
    71 //
       
    72 // ----------------------------------------------------------------------------
       
    73 //
       
    74 inline void CHsContentPublisher::SetProperty( TProperty /*aProperty*/, 
       
    75     TAny* /*aAny*/ )
       
    76     {
       
    77     }
       
    78 
       
    79 // ----------------------------------------------------------------------------
       
    80 // CHsContentPublisher::GetProperty
       
    81 //
       
    82 // ----------------------------------------------------------------------------
       
    83 //
       
    84 inline TAny* CHsContentPublisher::GetProperty( 
       
    85     TProperty /*aProperty*/ )
       
    86     {
       
    87     return NULL;
       
    88     }
       
    89 
       
    90 // ----------------------------------------------------------------------------
       
    91 // CHsContentPublisher::HandleEvent
       
    92 //
       
    93 // ----------------------------------------------------------------------------
       
    94 //
       
    95 inline void CHsContentPublisher::HandleEvent( TInt /*aEvent*/, 
       
    96     const TDesC& /*aParam*/ )
       
    97     {    
       
    98     }
       
    99 
       
   100 // ----------------------------------------------------------------------------
       
   101 // CHsContentPublisher::HandleEvent
       
   102 //
       
   103 // ----------------------------------------------------------------------------
       
   104 //
       
   105 inline void CHsContentPublisher::HandleEvent( const TDesC& /*aEventName*/, 
       
   106     const TDesC& /*aParam*/ )
       
   107     {    
       
   108     }
       
   109 
       
   110 // ----------------------------------------------------------------------------
       
   111 // CHsContentPublisher::HasMenuItem
       
   112 //
       
   113 // ----------------------------------------------------------------------------
       
   114 //
       
   115 inline TBool CHsContentPublisher::HasMenuItem( const TDesC& /*aMenuItem*/ )
       
   116     {
       
   117     return EFalse;
       
   118     }
       
   119 
       
   120 // ----------------------------------------------------------------------------
       
   121 // CHsContentPublisher::Extension
       
   122 //
       
   123 // ----------------------------------------------------------------------------
       
   124 //
       
   125 inline TAny* CHsContentPublisher::Extension( TUid /*aUid*/ )
       
   126     {
       
   127     return NULL;
       
   128     }
       
   129 
       
   130 // ----------------------------------------------------------------------------
       
   131 // CHsContentPublisher::PublisherInfo
       
   132 //
       
   133 // ----------------------------------------------------------------------------
       
   134 //
       
   135 inline const THsPublisherInfo& CHsContentPublisher::PublisherInfo() const
       
   136     {
       
   137     return iPublisherInfo;
       
   138     }
       
   139 
       
   140 #endif // _HSCONTENTPUBLISHER_INL
       
   141 
       
   142 // End of file