hotspotfw/hsserver/inc/hotspotclientserver.h
branchRCL_3
changeset 10 dff6ebfd236f
parent 8 c2bc3f8c7777
child 24 63be7eb3fc78
equal deleted inserted replaced
8:c2bc3f8c7777 10:dff6ebfd236f
    21 #define HOTSPOTCLIENTSERVER_H
    21 #define HOTSPOTCLIENTSERVER_H
    22 
    22 
    23 #include "hssiapsettings.h"
    23 #include "hssiapsettings.h"
    24 
    24 
    25 _LIT(KHotSpotServerExe,         "\\sys\\bin\\HotSpotServer.exe");
    25 _LIT(KHotSpotServerExe,         "\\sys\\bin\\HotSpotServer.exe");
    26 _LIT(KHotSpotServerSemaphore,   "HotSpotServerSemaphore");
       
    27 _LIT(KHotSpotDataServerName,    "HotSpotServer");
    26 _LIT(KHotSpotDataServerName,    "HotSpotServer");
    28 
    27 
    29 _LIT( KWlanBearerAgent, "wlanagt.agt" );
       
    30 _LIT( KWlanBearerAgent2, "wlanagt2.agt" );
       
    31 
       
    32 _LIT(KHotSpotServerName,"hotspotserver");
    28 _LIT(KHotSpotServerName,"hotspotserver");
    33 _LIT(KHotSpotServerImg,"HotSpotServer");		// DLL/EXE name
    29 _LIT(KHotSpotServerImg,"HotSpotServer");		
    34 
       
    35 _LIT(KExePath, "\\sys\\bin\\");
       
    36 _LIT(KExe, ".exe");
       
    37 
    30 
    38 _LIT( KHotSpotPlugin, "NetCfgExtnHotSpot" );
    31 _LIT( KHotSpotPlugin, "NetCfgExtnHotSpot" );
    39 _LIT( KDhcpPlugin, "NetCfgExtnDhcp" );
    32 _LIT( KDhcpPlugin, "NetCfgExtnDhcp" );
    40 const TUint KEasyWlanServiceId = 1;
    33 const TUint KEasyWlanServiceId = 1;
    41 
       
    42 const TUint KMaxSqlQueryLength = 2048;
       
    43 _LIT(KDatabaseName, "c:\\system\\data\\hotspot.dat");
       
    44 _LIT(KTableName, "hotspot");
       
    45 _LIT(KIapName, "IapName");
       
    46 _LIT(KTestStatus, "TestStatus");
       
    47 _LIT(KRedirectStatus, "RedirectStatus");
       
    48 
       
    49 const TInt KAppNameMaxLength = 64;
       
    50 const TInt KExePathLength = 14;
       
    51 const TInt KExeLength = 4;
       
    52 const TUid KHotspotServerUid3={0x10282ECB};
    34 const TUid KHotspotServerUid3={0x10282ECB};
    53 
    35 
    54 const TInt KMaxHotspotMessage=512;
       
    55 const TInt KScanHotspotIapId=0;
       
    56 
       
    57 const TUint KHssShutdown  = 777;
    36 const TUint KHssShutdown  = 777;
    58 
       
    59 const TUint8 KHssMacAddressLength = 6;
    37 const TUint8 KHssMacAddressLength = 6;
    60 
    38 
    61 const TUid KInternetConnectivityUid={0x10282EC5};
    39 const TUid KInternetConnectivityUid={0x10282EC5};
    62 const TUid K3rdPartyEcomInterfaceUid={0x10282ED1};
    40 const TUid K3rdPartyEcomInterfaceUid={0x10282ED1};
    63 
    41 
    77 const TUint KHotSpotMajorVersionNumber = 0;
    55 const TUint KHotSpotMajorVersionNumber = 0;
    78 const TUint KHotSpotMinorVersionNumber = 1;
    56 const TUint KHotSpotMinorVersionNumber = 1;
    79 const TUint KHotSpotBuildVersionNumber = 1;
    57 const TUint KHotSpotBuildVersionNumber = 1;
    80 
    58 
    81 const TInt KIapNameLength = 128;
    59 const TInt KIapNameLength = 128;
    82 const TUint KConnectivityTestedId = 20;
    60 const TInt KUidLength = 10;
    83 const TUint KConnectivityTestNeededId = 30;
       
    84 const TUint KNoRedirect = 40;
       
    85 const TUint KRedirect = 50;
       
    86 
    61 
    87 /**
    62 /**
    88 * Commands from client to server.
    63 * Commands from client to server.
    89 */
    64 */
    90 enum THotSpotCommands
    65 enum THotSpotCommands