hotspotfw/hsserver/inc/hotspotclientserver.h
changeset 19 10810c91db26
parent 0 56b72877c1cb
child 39 7b3e49e4608a
equal deleted inserted replaced
3:ff3b37722600 19:10810c91db26
    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;
       
    37 const TUint8 KHssMacAddressLength = 6;
    58 
    38 
    59 const TUid KInternetConnectivityUid={0x10282EC5};
    39 const TUid KInternetConnectivityUid={0x10282EC5};
    60 const TUid K3rdPartyEcomInterfaceUid={0x10282ED1};
    40 const TUid K3rdPartyEcomInterfaceUid={0x10282ED1};
    61 
    41 
    62 _LIT8( KExtensionAPI, " HSFWExt" );
    42 _LIT8( KExtensionAPI, " HSFWExt" );
    75 const TUint KHotSpotMajorVersionNumber = 0;
    55 const TUint KHotSpotMajorVersionNumber = 0;
    76 const TUint KHotSpotMinorVersionNumber = 1;
    56 const TUint KHotSpotMinorVersionNumber = 1;
    77 const TUint KHotSpotBuildVersionNumber = 1;
    57 const TUint KHotSpotBuildVersionNumber = 1;
    78 
    58 
    79 const TInt KIapNameLength = 128;
    59 const TInt KIapNameLength = 128;
    80 const TUint KConnectivityTestedId = 20;
    60 const TInt KUidLength = 10;
    81 const TUint KConnectivityTestNeededId = 30;
       
    82 const TUint KNoRedirect = 40;
       
    83 const TUint KRedirect = 50;
       
    84 
    61 
    85 /**
    62 /**
    86 * Commands from client to server.
    63 * Commands from client to server.
    87 */
    64 */
    88 enum THotSpotCommands
    65 enum THotSpotCommands