idlefw/tsrc/framework/mt_aifw/AiFwTestContentPlugin4.cpp
branchRCL_3
changeset 110 2c7f27287390
equal deleted inserted replaced
101:9e077f9a342c 110:2c7f27287390
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // ========== INCLUDE FILES ===================================================
       
    20 
       
    21 #include "AiFwTestContentPlugin4.h"
       
    22 #include "AiFwTestDefines.h"
       
    23 #include "AiFwTestContentModel.h"
       
    24 
       
    25 // ========== EXTERNAL DATA STRUCTURES ========================================
       
    26 
       
    27 // ========== EXTERNAL FUNCTION PROTOTYPES ====================================
       
    28 
       
    29 // ========== CONSTANTS =======================================================
       
    30 
       
    31 // ========== MACROS ==========================================================
       
    32 
       
    33 // ========== LOCAL CONSTANTS AND MACROS ======================================
       
    34 
       
    35 // ========== MODULE DATA STRUCTURES ==========================================
       
    36 
       
    37 // ========== LOCAL FUNCTION PROTOTYPES =======================================
       
    38 
       
    39 // ========== FORWARD DECLARATIONS ============================================
       
    40 
       
    41 // ========== LOCAL FUNCTIONS =================================================
       
    42 
       
    43 // ========== MEMBER FUNCTIONS ================================================
       
    44 
       
    45 // ----------------------------------------------------------------------------
       
    46 //
       
    47 //
       
    48 //
       
    49 // ----------------------------------------------------------------------------
       
    50 //
       
    51 CAiFwTestContentPlugin4::CAiFwTestContentPlugin4()
       
    52 {}
       
    53 
       
    54 // ----------------------------------------------------------------------------
       
    55 //
       
    56 //
       
    57 //
       
    58 // ----------------------------------------------------------------------------
       
    59 //
       
    60 void CAiFwTestContentPlugin4::ConstructL()
       
    61 {
       
    62     iInfo = new (ELeave) TAiPublisherInfo;
       
    63     iInfo->iUid.iUid = KImplementationUidAiTestContentPlugin4;
       
    64     iInfo->iName.Copy( _L8( "AiFwTestPlugin4" ) );
       
    65 }
       
    66 
       
    67 // ----------------------------------------------------------------------------
       
    68 //
       
    69 //
       
    70 //
       
    71 // ----------------------------------------------------------------------------
       
    72 //
       
    73 CAiFwTestContentPlugin4* CAiFwTestContentPlugin4::NewL()
       
    74 {
       
    75     CAiFwTestContentPlugin4* self = new (ELeave) CAiFwTestContentPlugin4;
       
    76 
       
    77     CleanupStack::PushL(self);
       
    78     self->ConstructL();
       
    79     CleanupStack::Pop();
       
    80 
       
    81     return self;
       
    82 }
       
    83 
       
    84 // ----------------------------------------------------------------------------
       
    85 //
       
    86 //
       
    87 //
       
    88 // ----------------------------------------------------------------------------
       
    89 //
       
    90 CAiFwTestContentPlugin4::~CAiFwTestContentPlugin4()
       
    91 {
       
    92     delete iInfo;
       
    93 }
       
    94 
       
    95 // ----------------------------------------------------------------------------
       
    96 //
       
    97 //
       
    98 //
       
    99 // ----------------------------------------------------------------------------
       
   100 //
       
   101 TInt CAiFwTestContentPlugin4::Callback(TAny* /*aPtr*/)
       
   102 {
       
   103     return KErrNone;
       
   104 }
       
   105 
       
   106 // ----------------------------------------------------------------------------
       
   107 //
       
   108 //
       
   109 //
       
   110 // ----------------------------------------------------------------------------
       
   111 //
       
   112 void CAiFwTestContentPlugin4::Resume(TAiTransitionReason /*aReason*/)
       
   113 {
       
   114     User::Leave( KErrNotFound );
       
   115 }
       
   116 
       
   117 // ----------------------------------------------------------------------------
       
   118 //
       
   119 //
       
   120 //
       
   121 // ----------------------------------------------------------------------------
       
   122 //
       
   123 void CAiFwTestContentPlugin4::Suspend(TAiTransitionReason /*aReason*/)
       
   124 {
       
   125     
       
   126 }
       
   127 
       
   128 // ----------------------------------------------------------------------------
       
   129 //
       
   130 //
       
   131 //
       
   132 // ----------------------------------------------------------------------------
       
   133 //
       
   134 void CAiFwTestContentPlugin4::Stop(TAiTransitionReason /*aReason*/)
       
   135 {
       
   136     
       
   137 }
       
   138 
       
   139 // ----------------------------------------------------------------------------
       
   140 //
       
   141 //
       
   142 //
       
   143 // ----------------------------------------------------------------------------
       
   144 //
       
   145 void CAiFwTestContentPlugin4::SubscribeL(MAiContentObserver& /*aObserver*/)
       
   146 {
       
   147    
       
   148 }
       
   149 
       
   150 // ----------------------------------------------------------------------------
       
   151 //
       
   152 //
       
   153 //
       
   154 // ----------------------------------------------------------------------------
       
   155 //
       
   156 void CAiFwTestContentPlugin4::ConfigureL(RAiSettingsItemArray& aSettings)
       
   157     {
       
   158     aSettings.ResetAndDestroy();
       
   159     }
       
   160 
       
   161 // ----------------------------------------------------------------------------
       
   162 //
       
   163 //
       
   164 //
       
   165 // ----------------------------------------------------------------------------
       
   166 //
       
   167 TAny* CAiFwTestContentPlugin4::Extension(TUid aUid)
       
   168 {
       
   169     if (aUid == KExtensionUidProperty)
       
   170     {
       
   171         return static_cast<MAiPropertyExtension*>(this);
       
   172     }
       
   173     else if (aUid == KExtensionUidEventHandler)
       
   174         {
       
   175         return NULL;
       
   176         }
       
   177     return NULL;
       
   178 }
       
   179 
       
   180 // ----------------------------------------------------------------------------
       
   181 //
       
   182 //
       
   183 //
       
   184 // ----------------------------------------------------------------------------
       
   185 //
       
   186 TAny* CAiFwTestContentPlugin4::GetPropertyL(TInt aProperty)
       
   187 {
       
   188     if( aProperty == EAiPublisherInfo )
       
   189         {
       
   190         return iInfo;
       
   191         }
       
   192     User::Leave(KErrNotSupported);
       
   193     return NULL;
       
   194 }
       
   195 
       
   196 // ----------------------------------------------------------------------------
       
   197 //
       
   198 //
       
   199 //
       
   200 // ----------------------------------------------------------------------------
       
   201 //
       
   202 void CAiFwTestContentPlugin4::SetPropertyL(TInt /*aProperty*/, TAny* /*aValue*/)
       
   203     {
       
   204     
       
   205     }
       
   206 
       
   207 // ----------------------------------------------------------------------------
       
   208 //
       
   209 //
       
   210 //
       
   211 // ----------------------------------------------------------------------------
       
   212 //
       
   213 void CAiFwTestContentPlugin4::HandleEvent(TInt /*aEvent*/, const TDesC& /*aParam*/)
       
   214     {
       
   215     
       
   216     }
       
   217 
       
   218 // ========== OTHER EXPORTED FUNCTIONS ========================================
       
   219 
       
   220 // End of File.