defaultapplicationsettings/gsplugin/src/gs_das_implementationtable.cpp
changeset 10 0a74be98a8bc
parent 0 254040eb3b7d
child 11 10d0dd0e43f1
equal deleted inserted replaced
0:254040eb3b7d 10:0a74be98a8bc
     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:  Implementation table
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // System includes
       
    20 #include <e32std.h>
       
    21 #include <implementationproxy.h>
       
    22 
       
    23 // User includes
       
    24 #include "gs_das.h"
       
    25 #include <das_client.h>
       
    26 
       
    27 // Constants
       
    28 const TImplementationProxy KDASGSPluginImplementationTable[] = 
       
    29     {
       
    30     // Uid for plugin implementation:
       
    31     IMPLEMENTATION_PROXY_ENTRY( 0x10281BA1,    CDefaultAppGSPlugin::NewL )
       
    32     };
       
    33 
       
    34 
       
    35 // ---------------------------------------------------------------------------
       
    36 // ImplementationGroupProxy
       
    37 // Gate/factory function
       
    38 //
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( 
       
    42     TInt& aTableCount )
       
    43     {
       
    44     TInt error;
       
    45     if( !CDefaultAppClient::ServiceAvailable(error) )
       
    46         {
       
    47         //there was an error, service not found.
       
    48         aTableCount=0;
       
    49         }
       
    50     else //service was found
       
    51         aTableCount = sizeof( KDASGSPluginImplementationTable ) 
       
    52             / sizeof( TImplementationProxy );
       
    53             
       
    54     return KDASGSPluginImplementationTable;
       
    55     }
       
    56 
       
    57 // End of File