taskswitcher/contextengine/tsfswserver/client/src/tsfswclient.cpp
changeset 4 4d54b72983ae
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
       
     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:  Client API
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include "tsfswclient.h"
       
    20 #include "tsfswclientimpl.h"
       
    21 
       
    22 // --------------------------------------------------------------------------
       
    23 // CTsFswClient::NewL
       
    24 // --------------------------------------------------------------------------
       
    25 //    
       
    26 EXPORT_C CTsFswClient* CTsFswClient::NewL()
       
    27     {
       
    28     CTsFswClient* self = NewLC();
       
    29     CleanupStack::Pop( self );
       
    30     return self;
       
    31     }
       
    32 
       
    33 // --------------------------------------------------------------------------
       
    34 // CTsFswClient::NewLC
       
    35 // --------------------------------------------------------------------------
       
    36 //    
       
    37 EXPORT_C CTsFswClient* CTsFswClient::NewLC()
       
    38     {
       
    39     CTsFswClient* self = new ( ELeave ) CTsFswClient;
       
    40     CleanupStack::PushL( self );
       
    41     self->ConstructL();
       
    42     return self;
       
    43     }
       
    44 
       
    45 // --------------------------------------------------------------------------
       
    46 // CTsFswClient::CTsFswClient
       
    47 // --------------------------------------------------------------------------
       
    48 //    
       
    49 CTsFswClient::CTsFswClient()
       
    50     {
       
    51     }
       
    52 
       
    53 // --------------------------------------------------------------------------
       
    54 // CTsFswClient::~CTsFswClient
       
    55 // --------------------------------------------------------------------------
       
    56 //    
       
    57 CTsFswClient::~CTsFswClient()
       
    58     {
       
    59     delete iImpl;
       
    60     }
       
    61 
       
    62 // --------------------------------------------------------------------------
       
    63 // CTsFswClient::ConstructL
       
    64 // --------------------------------------------------------------------------
       
    65 //    
       
    66 void CTsFswClient::ConstructL()
       
    67     {
       
    68     iImpl = CTsFswClientImpl::NewL();
       
    69     }
       
    70 
       
    71 // --------------------------------------------------------------------------
       
    72 // CTsFswClient::GetContentL
       
    73 // --------------------------------------------------------------------------
       
    74 //    
       
    75 EXPORT_C void CTsFswClient::GetContentL( RTsFswArray& aDst )
       
    76     {
       
    77     iImpl->GetContentL( aDst );
       
    78     }
       
    79 
       
    80 // --------------------------------------------------------------------------
       
    81 // CTsFswClient::Subscribe
       
    82 // --------------------------------------------------------------------------
       
    83 //    
       
    84 EXPORT_C void CTsFswClient::Subscribe( MTsFswObserver& aObserver )
       
    85     {
       
    86     iImpl->Subscribe( aObserver );
       
    87     }
       
    88 
       
    89 // --------------------------------------------------------------------------
       
    90 // CTsFswClient::CancelSubscribe
       
    91 // --------------------------------------------------------------------------
       
    92 //    
       
    93 EXPORT_C void CTsFswClient::CancelSubscribe()
       
    94     {
       
    95     iImpl->CancelSubscribe();
       
    96     }
       
    97 
       
    98 // --------------------------------------------------------------------------
       
    99 // CTsFswClient::CloseApp
       
   100 // --------------------------------------------------------------------------
       
   101 //    
       
   102 EXPORT_C void CTsFswClient::CloseApp( TInt aWgId )
       
   103     {
       
   104     iImpl->CloseApp( aWgId );
       
   105     }
       
   106     
       
   107 // --------------------------------------------------------------------------
       
   108 // CTsFswClient::SwitchToApp
       
   109 // --------------------------------------------------------------------------
       
   110 //    
       
   111 EXPORT_C void CTsFswClient::SwitchToApp( TInt aWgId )
       
   112     {
       
   113     iImpl->SwitchToApp( aWgId );
       
   114     }
       
   115 
       
   116 // --------------------------------------------------------------------------
       
   117 // CTsFswClient::ForegroundAppUid
       
   118 // --------------------------------------------------------------------------
       
   119 //    
       
   120 EXPORT_C TUid CTsFswClient::ForegroundAppUid( TTsFswFgAppType aType )
       
   121     {
       
   122     return iImpl->ForegroundAppUid( aType );
       
   123     }
       
   124 
       
   125 
       
   126 // end of file