ipcm_plat/connection_settings_shim_api/inc/cmmanagerdefines_shim.h
changeset 23 7ec726f93df1
parent 20 9c97ad6591ae
child 27 489cf6208544
equal deleted inserted replaced
20:9c97ad6591ae 23:7ec726f93df1
    38  *  Constants and data types used in CmManagerShim, CmDestinationShim,
    38  *  Constants and data types used in CmManagerShim, CmDestinationShim,
    39  *  and CmConnectionMethodShim interfaces.
    39  *  and CmConnectionMethodShim interfaces.
    40  */
    40  */
    41 namespace CMManagerShim
    41 namespace CMManagerShim
    42 {
    42 {
       
    43     /*!
       
    44      *  Constants for bearer types.
       
    45      */
    43     //! Wlan bearer type
    46     //! Wlan bearer type
    44     const uint BearerTypeWlan           = KUidWlanBearerType;
    47     const uint BearerTypeWlan           = KUidWlanBearerType;
    45     //! Packet data bearer type
    48     //! Packet data bearer type
    46     const uint BearerTypePacketData     = KUidPacketDataBearerType;
    49     const uint BearerTypePacketData     = KUidPacketDataBearerType;
    47 
    50 
    48     /*!
    51     /*!
       
    52      *  Constants for IPv4 and IPv6 addresses.
       
    53      */
       
    54     //! Unspecified IPv4 address
       
    55     const QString UnspecifiedIpv4Address("0.0.0.0");
       
    56     //! Known IPv6 name server 1
       
    57     const QString KnownIpv6NameServer1("fec0:000:0000:ffff::1");
       
    58     //! Known IPv6 name server 2
       
    59     const QString KnownIpv6NameServer2("fec0:000:0000:ffff::2");
       
    60     //! Dynamic IPv6 address
       
    61     const QString DynamicIpv6Address("0:0:0:0:0:0:0:0");
       
    62 
       
    63     /*!
    49      *  Constants for maximum string lengths.
    64      *  Constants for maximum string lengths.
    50      */
    65      */
    51     //! Connection name length
    66     //! Connection name length
    52     const uint CmNameLength                 = 30;
    67     const uint CmNameLength                 = 30;
    53     //! Homepage address length
    68     //! Homepage address length
    54     const uint CmStartPageLength            = 1024;
    69     const uint CmStartPageLength            = 1024;
       
    70     //! IPv4 IP address length
       
    71     const uint CmIP4AddressLength           = 15;
    55     //! IPv6 DNS address length
    72     //! IPv6 DNS address length
    56     const uint CmIP6NameServerLength        = 50;
    73     const uint CmIP6NameServerLength        = 50;
    57     //! Proxy server address length
    74     //! Proxy server address length
    58     const uint CmProxyServerNameLength      = 1024;
    75     const uint CmProxyServerNameLength      = 1024;
    59     //! Proxy server port number length
    76     //! Proxy server port number length
    83         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   100         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    84         CmProtected                     = CMManager::ECmProtected,
   101         CmProtected                     = CMManager::ECmProtected,
    85         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   102         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    86         CmNetworkId                     = CMManager::ECmNetworkId,
   103         CmNetworkId                     = CMManager::ECmNetworkId,
    87         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   104         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
       
   105         CmConnected                     = CMManager::ECmConnected,
       
   106         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    88         CmId                            = CMManager::ECmId,
   107         CmId                            = CMManager::ECmId,
    89         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   108         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    90         CmStartPage                     = CMManager::ECmStartPage,
   109         CmStartPage                     = CMManager::ECmStartPage,
    91         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   110         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    92         CmIPv6Supported                 = CMManager::ECmIPv6Supported,
   111         CmIPv6Supported                 = CMManager::ECmIPv6Supported,
    93         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   112         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    94         CmIPDNSAddrFromServer           = CMManager::ECmIPDNSAddrFromServer,
   113         CmIPDNSAddrFromServer           = CMManager::ECmIPDNSAddrFromServer,
    95         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   114         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    96         CmIPAddress                     = CMManager::ECmIPAddress,
   115         CmIPAddress                     = CMManager::ECmIPAddress,
    97         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   116         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
       
   117         CmIPAddrFromServer              = CMManager::ECmIPAddFromServer,
       
   118         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
       
   119         CmIPNetmask                     = CMManager::ECmIPNetmask,
       
   120         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
       
   121         CmIPGateway                     = CMManager::ECmIPGateway,
       
   122         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
    98         CmIPNameServer1                 = CMManager::ECmIPNameServer1,
   123         CmIPNameServer1                 = CMManager::ECmIPNameServer1,
    99         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   124         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   100         CmIPNameServer2                 = CMManager::ECmIPNameServer2,
   125         CmIPNameServer2                 = CMManager::ECmIPNameServer2,
   101         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   126         //! From TConnectionMethodCommonAttributes in cmconnectionmethoddef.h
   102         CmIP6DNSAddrFromServer          = CMManager::ECmIP6DNSAddrFromServer,
   127         CmIP6DNSAddrFromServer          = CMManager::ECmIP6DNSAddrFromServer,
   121         PacketDataAPName                = CMManager::EPacketDataAPName,
   146         PacketDataAPName                = CMManager::EPacketDataAPName,
   122         /*!
   147         /*!
   123          * From TConnectionMethodPacketDataSpecificAttributes in
   148          * From TConnectionMethodPacketDataSpecificAttributes in
   124          * cmpluginpacketdatadef.h
   149          * cmpluginpacketdatadef.h
   125          */
   150          */
       
   151         PacketDataPDPType               = CMManager::EPacketDataPDPType,
       
   152         /*!
       
   153          * From TConnectionMethodPacketDataSpecificAttributes in
       
   154          * cmpluginpacketdatadef.h
       
   155          */
   126         PacketDataIFPromptForAuth       = CMManager::EPacketDataIFPromptForAuth,
   156         PacketDataIFPromptForAuth       = CMManager::EPacketDataIFPromptForAuth,
   127         /*!
   157         /*!
   128          * From TConnectionMethodPacketDataSpecificAttributes in
   158          * From TConnectionMethodPacketDataSpecificAttributes in
   129          * cmpluginpacketdatadef.h
   159          * cmpluginpacketdatadef.h
   130          */
   160          */
   131         PacketDataIFAuthName            = CMManager::EPacketDataIFAuthName,
   161         PacketDataIFAuthName            = CMManager::EPacketDataIFAuthName,
       
   162         /*!
       
   163          * From TConnectionMethodPacketDataSpecificAttributes in
       
   164          * cmpluginpacketdatadef.h
       
   165          */
       
   166         PacketDataIPAddrFromServer      = CMManager::EPacketDataIPAddrFromServer,
       
   167         /*!
       
   168          * From TConnectionMethodPacketDataSpecificAttributes in
       
   169          * cmpluginpacketdatadef.h
       
   170          */
       
   171         PacketDataIPAddr                = CMManager::EPacketDataIPAddr,
       
   172         /*!
       
   173          * From TConnectionMethodPacketDataSpecificAttributes in
       
   174          * cmpluginpacketdatadef.h
       
   175          */
       
   176         PacketDataIPDNSAddrFromServer   = CMManager::EPacketDataIPDNSAddrFromServer,
       
   177         /*!
       
   178          * From TConnectionMethodPacketDataSpecificAttributes in
       
   179          * cmpluginpacketdatadef.h
       
   180          */
       
   181         PacketDataIPNameServer1         = CMManager::EPacketDataIPNameServer1,
       
   182         /*!
       
   183          * From TConnectionMethodPacketDataSpecificAttributes in
       
   184          * cmpluginpacketdatadef.h
       
   185          */
       
   186         PacketDataIPNameServer2         = CMManager::EPacketDataIPNameServer2,
       
   187         /*!
       
   188          * From TConnectionMethodPacketDataSpecificAttributes in
       
   189          * cmpluginpacketdatadef.h
       
   190          */
       
   191         PacketDataIPIP6DNSAddrFromServer = CMManager::EPacketDataIPIP6DNSAddrFromServer,
       
   192         /*!
       
   193          * From TConnectionMethodPacketDataSpecificAttributes in
       
   194          * cmpluginpacketdatadef.h
       
   195          */
       
   196         PacketDataIPIP6NameServer1      = CMManager::EPacketDataIPIP6NameServer1,
       
   197         /*!
       
   198          * From TConnectionMethodPacketDataSpecificAttributes in
       
   199          * cmpluginpacketdatadef.h
       
   200          */
       
   201         PacketDataIPIP6NameServer2      = CMManager::EPacketDataIPIP6NameServer2,
   132         /*!
   202         /*!
   133          * From TConnectionMethodPacketDataSpecificAttributes in
   203          * From TConnectionMethodPacketDataSpecificAttributes in
   134          * cmpluginpacketdatadef.h
   204          * cmpluginpacketdatadef.h
   135          */
   205          */
   136         PacketDataIFAuthPass            = CMManager::EPacketDataIFAuthPass,
   206         PacketDataIFAuthPass            = CMManager::EPacketDataIFAuthPass,
   166         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   236         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   167         WlanWepKey4InAscii              = CMManager::EWlanWepKey4InAscii,
   237         WlanWepKey4InAscii              = CMManager::EWlanWepKey4InAscii,
   168         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   238         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   169         WlanWepKeyIndex                 = CMManager::EWlanWepKeyIndex,
   239         WlanWepKeyIndex                 = CMManager::EWlanWepKeyIndex,
   170         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   240         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
       
   241         Wlan802_1xAllowUnencrypted      = CMManager::EWlan802_1xAllowUnencrypted,
       
   242         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   171         WlanEnableWpaPsk                = CMManager::EWlanEnableWpaPsk,
   243         WlanEnableWpaPsk                = CMManager::EWlanEnableWpaPsk,
   172         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   244         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
   173         WlanWpaPreSharedKey             = CMManager::EWlanWpaPreSharedKey
   245         WlanWpaPreSharedKey             = CMManager::EWlanWpaPreSharedKey,
       
   246         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
       
   247         WlanWapiPsk                     = CMManager::EWlanWapiPsk,
       
   248         //!  From TConnectionMethodWlanSpecificAttributes in cmpluginwlandef.h
       
   249         WlanWapiPskFormat               = CMManager::EWlanWapiPskFormat
   174     };
   250     };
   175     
   251     
   176     /*!
   252     /*!
   177      * Enumerations for Wlan connection modes. Values come from
   253      * Enumerations for Wlan connection modes. Values come from
   178      * TWlanNetMode in cmpluginwlandef.h
   254      * TWlanNetMode in cmpluginwlandef.h