videoconnutility/connutilpsworker/src/vcxconnutilpsworker.cpp
branchRCL_3
changeset 23 13a33d82ad98
parent 0 822a42b6c3f1
equal deleted inserted replaced
22:826cea16efd9 23:13a33d82ad98
       
     1 /*
       
     2 * Copyright (c) 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 the License "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:    executable for defining PS keys used by the connectionutility*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <e32std.h>
       
    22 #include <e32property.h>
       
    23 
       
    24 #include "vcxconnutilcommon.h"
       
    25 #include "vcxconnectionutility.hrh"
       
    26 
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // E32Main()
       
    30 // Provides the globale entry point function for the platform to start process 
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 GLDEF_C TInt E32Main()
       
    34     {
       
    35     // Create cleanup stack
       
    36     __UHEAP_MARK;
       
    37 
       
    38     // define properties
       
    39     RProperty::Define( KVcxConnUtilPScategory, EVCxPSConnectionStatus, RProperty::EInt );
       
    40             
       
    41     RProperty::Define( KVcxConnUtilPScategory, EVCxPSIapId, RProperty::EInt );
       
    42                         
       
    43     RProperty::Define( KVcxConnUtilPScategory, EVCxPSSnapId, RProperty::EInt );            
       
    44             
       
    45     RProperty::Define( KVcxConnUtilPScategory, EVCxPSMasterExists, RProperty::EInt );
       
    46             
       
    47     RProperty::Define( KVcxConnUtilPScategory, EVCxPSNbrConnInstances, RProperty::EInt );
       
    48             
       
    49     RProperty::Define( KVcxConnUtilPScategory, EVCxPSRoamingRequestStatus, RProperty::EInt );
       
    50             
       
    51     RProperty::Define( KVcxConnUtilPScategory, EVCxPSNbRoamAccepted, RProperty::EInt );
       
    52             
       
    53     RProperty::Define( KVcxConnUtilPScategory, EVCxPSNbrRoamResp, RProperty::EInt );
       
    54      
       
    55     RSemaphore semaphore;
       
    56     if( semaphore.OpenGlobal( KVcxConnUtilPSSema ) == KErrNone )
       
    57         {
       
    58         // Semaphore opened ok, so someone really needing PS keys exists.
       
    59         // signal it to notify PS keys are defined
       
    60         semaphore.Signal();
       
    61         semaphore.Close();
       
    62         }
       
    63     __UHEAP_MARKEND;
       
    64     return KErrNone;
       
    65     }
       
    66 // end of file