phoneapp/phoneuistates/tsrc/common/stubs.cpp
changeset 74 d1c62c765e48
equal deleted inserted replaced
65:2a5d4ab426d3 74:d1c62c765e48
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 #include <coemain.h>
       
    18 CCoeStatic * CCoeEnv::Static(TUid) 
       
    19     {    
       
    20     return NULL;
       
    21     }
       
    22 
       
    23 CCoeEnv * CCoeEnv::Static() {}
       
    24 
       
    25 #include <eikenv.h>
       
    26 void CEikonEnv::DismissTaskList() {}
       
    27 
       
    28 
       
    29 #include <featmgr.h>
       
    30 TInt FeatureManager::FeatureSupported( TInt ) {}
       
    31 
       
    32 #include <w32std.h>
       
    33 void RWsSession::SimulateKeyEvent(TKeyEvent) {}
       
    34 void RWsSession::Flush() {}
       
    35 
       
    36 #include <APGTASK.h>
       
    37 TApaTaskList::TApaTaskList(RWsSession &aSession ) : iWsSession( aSession ) {}
       
    38 TApaTask TApaTaskList::FindApp(TUid) {}
       
    39 TInt TApaTask::Exists() const {return EFalse;}
       
    40 
       
    41 #include <MProfileEngine.h>
       
    42 MProfileEngine * CreateProfileEngineL() {}
       
    43 
       
    44 
       
    45 #include "cphonelogger.h"
       
    46 CPhoneMethodLogger::CPhoneMethodLogger(
       
    47         TPhoneUILoggingComponent /*aLoggingComponent*/,
       
    48         TPtrC /*aTring*/ )
       
    49     {
       
    50     }
       
    51 CPhoneMethodLogger::~CPhoneMethodLogger()
       
    52     {
       
    53     }
       
    54 
       
    55 #include  "CPhonePubSubProxy.h"
       
    56 CPhonePubSubProxy* CPhonePubSubProxy::Instance()
       
    57     {
       
    58     return NULL;
       
    59     }
       
    60 void CPhonePubSubProxy::ChangePropertyValue( 
       
    61     const TUid& /*aCategory*/,
       
    62     const TUint /*aKey*/, 
       
    63     const TInt /*aValue*/ )
       
    64     {
       
    65     }
       
    66 
       
    67 #include <StringLoader.h>
       
    68 // Constant
       
    69 _LIT( KCreateListVoice, "Voice call" );
       
    70 _LIT( KCreateListVideo, "Video call" );
       
    71 _LIT( KCreateListInternet, "Internet call" );
       
    72 _LIT( KHoldText, "Hold" );
       
    73 _LIT( KTestString,"TestString" );
       
    74 
       
    75 void StringLoader::Load( TDes& /*aDest*/, TInt /*aResourceId*/,
       
    76     CCoeEnv* /*aLoaderEnv*/ )
       
    77     {
       
    78     
       
    79     }
       
    80 
       
    81 HBufC* StringLoader::LoadLC( TInt aResourceId,
       
    82                      CCoeEnv* /*aLoaderEnv*/ )
       
    83     {
       
    84     /*if ( R_CALLUI_CREATE_LIST_VOICE == aResourceId )
       
    85         {
       
    86         return KCreateListVoice().AllocLC();
       
    87         }
       
    88     if ( R_CALLUI_CREATE_LIST_VIDEO == aResourceId )
       
    89         {
       
    90         return KCreateListVideo().AllocLC();
       
    91         }
       
    92     if ( R_CALLUI_CREATE_LIST_INTERNET == aResourceId )
       
    93         {
       
    94         return KCreateListInternet().AllocLC();
       
    95         }*/
       
    96     return KNullDesC().AllocLC();
       
    97     };
       
    98     
       
    99 HBufC* StringLoader::LoadL( TInt aResourceId, TInt /*aInt*/,
       
   100                          CCoeEnv* aLoaderEnv )
       
   101     {
       
   102     HBufC* ret = LoadLC( aResourceId, aLoaderEnv );
       
   103     CleanupStack::Pop();
       
   104     return ret;
       
   105     };
       
   106 
       
   107 void StringLoader::Format( TDes& aDest, const TDesC& aSource,
       
   108                      TInt aPosition, const TDesC& aSubs )
       
   109     {
       
   110     aDest.Copy( KTestString );
       
   111     }
       
   112 
       
   113 #include "CPhoneMainResourceResolver.h"
       
   114 
       
   115 CPhoneMainResourceResolver::CPhoneMainResourceResolver()
       
   116     {
       
   117     
       
   118     }
       
   119 CPhoneMainResourceResolver::~CPhoneMainResourceResolver()
       
   120     {
       
   121     Dll::SetTls( NULL ) ;
       
   122     }
       
   123 
       
   124 CPhoneMainResourceResolver* CPhoneMainResourceResolver::Instance()
       
   125     {
       
   126     CPhoneMainResourceResolver* singleton;
       
   127 
       
   128     if ( Dll::Tls() == NULL )
       
   129           {
       
   130           // TLS is still null, which means that no CMySingleton has
       
   131           // been instantiated yet.  Do so now, and return that
       
   132           // instance:
       
   133           singleton = new ( ELeave ) CPhoneMainResourceResolver();
       
   134           // Store a pointer to the new instance in thread local storage:
       
   135           TInt err = Dll::SetTls( static_cast<TAny*>( singleton ) );
       
   136           if ( err == KErrNone )
       
   137               {
       
   138               return singleton;
       
   139               }
       
   140           else
       
   141               {
       
   142               delete singleton;
       
   143               User::Leave( err );
       
   144               return NULL;
       
   145               }
       
   146           }
       
   147       else
       
   148           {
       
   149         
       
   150           singleton = static_cast<CPhoneMainResourceResolver*>( Dll::Tls() );
       
   151           return singleton;
       
   152           }
       
   153 
       
   154     }
       
   155 
       
   156 TInt CPhoneMainResourceResolver::ResolveResourceID( const TInt& /*aResource*/ ) const
       
   157     {
       
   158     return 0;
       
   159     }
       
   160 
       
   161 void CPhoneMainResourceResolver::RegisterResolver( 
       
   162     MPhoneResourceResolver* /*aResolver*/ )
       
   163     {
       
   164     
       
   165     }
       
   166 
       
   167 
       
   168 //#include <AknUtils.h>
       
   169 class AknTextUtils 
       
   170     {
       
   171     static ConvertDigitsTo(  TDes& /*aDes*/, TDigitType /*aDigitType*/ )
       
   172         {
       
   173     
       
   174             }
       
   175     };
       
   176 
       
   177     
       
   178 #include "cphonemediatorfactory.h"
       
   179 
       
   180 CPhoneMediatorFactory* CPhoneMediatorFactory::Instance()
       
   181     {
       
   182     
       
   183     }
       
   184     
       
   185 CPhoneMediatorSender* CPhoneMediatorFactory::Sender()
       
   186     {
       
   187 
       
   188     }
       
   189 
       
   190 #include "cphonemediatorsender.h"
       
   191     
       
   192 TInt CPhoneMediatorSender::IssueCommand( 
       
   193     const TUid /*aDomain*/, 
       
   194     const TUid /*aCategory*/, 
       
   195     const TInt /*aCommandId*/,
       
   196     const TVersion /*aVersion*/, 
       
   197     const TDesC8& /*aData*/,
       
   198     MPhoneShutdownCommand* /*aShutdownCommand*/ )
       
   199     {
       
   200     
       
   201     }