示例#1
0
/*!
    Construct a WBXML reader and initialize it to process WAP Service
    Loading (SL) documents.
*/
QServiceLoadingReader::QServiceLoadingReader()
{
    QWbXmlTagSet tags;
    QWbXmlTagSet attrs;

    set(tags, 0x05, "sl");

    set(attrs, 0x05, "action=execute-low");
    set(attrs, 0x06, "action=execute-high");
    set(attrs, 0x07, "action=cache");
    set(attrs, 0x08, "href");
    set(attrs, 0x09, "href=http://");
    set(attrs, 0x0A, "href=http://www.");
    set(attrs, 0x0B, "href=https://");
    set(attrs, 0x0C, "href=https://www.");
    set(attrs, 0x85, ".com/");
    set(attrs, 0x86, ".edu/");
    set(attrs, 0x87, ".net/");
    set(attrs, 0x88, ".org/");

    setTagSets( tags, attrs );
}
示例#2
0
/*!
    Construct a new WBXML reader object, with specific tag sets,
    \a tags and \a attrs.
*/
QWbXmlReader::QWbXmlReader( const QWbXmlTagSet& tags, const QWbXmlTagSet& attrs )
{
    d = new QWbXmlReaderPrivate();
    setTagSets( tags, attrs );
}
示例#3
0
/*!
    Construct a new Over-The-Air (OTA) network configuration reader
    of the specified \a type.
*/
QOtaReader::QOtaReader( QOtaType type )
{
    QWbXmlTagSet tags;
    QWbXmlTagSet attrs;

    if ( type == QOtaReader::Wap ) {

        // Tag and attribute lists based on "wap-183-provcont-20010724-a.pdf"
        // and "OMA-WAP-ProvCont-V1_1-20021112-C.pdf".

        set(tags, 0x05, "wap-provisioningdoc");
        set(tags, 0x06, "characteristic");
        set(tags, 0x07, "parm");
        set(tags, 0x46, "characteristic");
        set(tags, 0x47, "parm");

        set(attrs, 0x05, "name");
        set(attrs, 0x06, "value");
        set(attrs, 0x07, "name=NAME");
        set(attrs, 0x08, "name=NAP-ADDRESS");
        set(attrs, 0x09, "name=NAP-ADDRTYPE");
        set(attrs, 0x0A, "name=CALLTYPE");
        set(attrs, 0x0B, "name=VALIDUNTIL");
        set(attrs, 0x0C, "name=AUTHTYPE");
        set(attrs, 0x0D, "name=AUTHNAME");
        set(attrs, 0x0E, "name=AUTHSECRET");
        set(attrs, 0x0F, "name=LINGER");
        set(attrs, 0x10, "name=BEARER");
        set(attrs, 0x11, "name=NAPID");
        set(attrs, 0x12, "name=COUNTRY");
        set(attrs, 0x13, "name=NETWORK");
        set(attrs, 0x14, "name=INTERNET");
        set(attrs, 0x15, "name=PROXY-ID");
        set(attrs, 0x16, "name=PROXY-PROVIDER-ID");
        set(attrs, 0x17, "name=DOMAIN");
        set(attrs, 0x18, "name=PROVURL");
        set(attrs, 0x19, "name=PXAUTH-TYPE");
        set(attrs, 0x1A, "name=PXAUTH-ID");
        set(attrs, 0x1B, "name=PXAUTH-PW");
        set(attrs, 0x1C, "name=STARTPAGE");
        set(attrs, 0x1D, "name=BASAUTH-ID");
        set(attrs, 0x1E, "name=BASAUTH-PW");
        set(attrs, 0x1F, "name=PUSHENABLED");
        set(attrs, 0x20, "name=PXADDR");
        set(attrs, 0x21, "name=PXADDRTYPE");
        set(attrs, 0x22, "name=TO-NAPID");
        set(attrs, 0x23, "name=PORTNBR");
        set(attrs, 0x24, "name=SERVICE");
        set(attrs, 0x25, "name=LINKSPEED");
        set(attrs, 0x26, "name=DNLINKSPEED");
        set(attrs, 0x27, "name=LOCAL-ADDR");
        set(attrs, 0x28, "name=LOCAL-ADDRTYPE");
        set(attrs, 0x29, "name=CONTEXT-ALLOW");
        set(attrs, 0x2A, "name=TRUST");
        set(attrs, 0x2B, "name=MASTER");
        set(attrs, 0x2C, "name=SID");
        set(attrs, 0x2D, "name=SOC");
        set(attrs, 0x2E, "name=WSP-VERSION");
        set(attrs, 0x2F, "name=PHYSICAL-PROXY-ID");
        set(attrs, 0x30, "name=CLIENT-ID");
        set(attrs, 0x31, "name=DELIVERY-ERR-SDU");
        set(attrs, 0x32, "name=DELIVERY-ORDER");
        set(attrs, 0x33, "name=TRAFFIC-CLASS");
        set(attrs, 0x34, "name=MAX-SDU-SIZE");
        set(attrs, 0x35, "name=MAX-BITRATE-UPLINK");
        set(attrs, 0x36, "name=MAX-BITRATE-DNLINK");
        set(attrs, 0x37, "name=RESIDUAL-BER");
        set(attrs, 0x38, "name=SDU-ERROR-RATIO");
        set(attrs, 0x39, "name=TRAFFIC-HANDL-PRIO");
        set(attrs, 0x3A, "name=TRANSFER-DELAY");
        set(attrs, 0x3B, "name=GUARANTEED-BITRATE-UPLINK");
        set(attrs, 0x3C, "name=GUARANTEED-BITRATE-DNLINK");
        set(attrs, 0x3D, "name=PXADDR-FQDN");
        set(attrs, 0x3E, "name=PROXY-PW");
        set(attrs, 0x3F, "name=PPGAUTH-TYPE");
        set(attrs, 0x45, "version");
        set(attrs, 0x46, "version=1.0");
        set(attrs, 0x47, "name=PULLENABLED");
        set(attrs, 0x48, "name=DNS-ADDR");
        set(attrs, 0x49, "name=MAX-NUM-RETRY");
        set(attrs, 0x4A, "name=FIRST-RETRY-TIMEOUT");
        set(attrs, 0x4B, "name=REREG-THRESHOLD");
        set(attrs, 0x4C, "name=T-BIT");
        set(attrs, 0x4E, "name=AUTH-ENTITY");
        set(attrs, 0x4F, "name=SPI");
        set(attrs, 0x50, "type");
        set(attrs, 0x51, "type=PXLOGICAL");
        set(attrs, 0x52, "type=PXPHYSICAL");
        set(attrs, 0x53, "type=PORT");
        set(attrs, 0x54, "type=VALIDITY");
        set(attrs, 0x55, "type=NAPDEF");
        set(attrs, 0x56, "type=BOOTSTRAP");
        set(attrs, 0x57, "type=VENDORCONFIG");
        set(attrs, 0x58, "type=CLIENTIDENTITY");
        set(attrs, 0x59, "type=PXAUTHINFO");
        set(attrs, 0x5A, "type=NAPAUTHINFO");
        set(attrs, 0x5B, "type=ACCESS");
        set(attrs, 0x85, "IPV4");
        set(attrs, 0x86, "IPV6");
        set(attrs, 0x87, "E164");
        set(attrs, 0x88, "ALPHA");
        set(attrs, 0x89, "APN");
        set(attrs, 0x8A, "SCODE");
        set(attrs, 0x8B, "TETRA-ITSI");
        set(attrs, 0x8C, "MAN");
        set(attrs, 0x90, "ANALOG-MODEM");
        set(attrs, 0x91, "V.120");
        set(attrs, 0x92, "V.110");
        set(attrs, 0x93, "X.31");
        set(attrs, 0x94, "BIT-TRANSPARENT");
        set(attrs, 0x95, "DIRECT-ASYNCHRONOUS-DATA-SERVICE");
        set(attrs, 0x9A, "PAP");
        set(attrs, 0x9B, "CHAP");
        set(attrs, 0x9C, "HTTP-BASIC");
        set(attrs, 0x9D, "HTTP-DIGEST");
        set(attrs, 0x9E, "WTLS-SS");
        set(attrs, 0x9F, "MD5");
        set(attrs, 0xA2, "GSM-USSD");
        set(attrs, 0xA3, "GSM-SMS");
        set(attrs, 0xA4, "ANSI-136-GUTS");
        set(attrs, 0xA5, "IS-95-CDMA-SMS");
        set(attrs, 0xA6, "IS-95-CDMA-CSD");
        set(attrs, 0xA7, "IS-95-CDMA-PACKET");
        set(attrs, 0xA8, "ANSI-136-CSD");
        set(attrs, 0xA9, "ANSI-136-GPRS");
        set(attrs, 0xAA, "GSM-CSD");
        set(attrs, 0xAB, "GSM-GPRS");
        set(attrs, 0xAC, "AMPS-CDPD");
        set(attrs, 0xAD, "PDC-CSD");
        set(attrs, 0xAE, "PDC-PACKET");
        set(attrs, 0xAF, "IDEN-SMS");
        set(attrs, 0xB0, "IDEN-CSD");
        set(attrs, 0xB1, "IDEN-PACKET");
        set(attrs, 0xB2, "FLEX/REFLEX");
        set(attrs, 0xB3, "PHS-SMS");
        set(attrs, 0xB4, "PHS-CSD");
        set(attrs, 0xB5, "TETRA-SDS");
        set(attrs, 0xB6, "TETRA-PACKET");
        set(attrs, 0xB7, "ANSI-136-GHOST");
        set(attrs, 0xB8, "MOBITEX-MPAK");
        set(attrs, 0xB9, "CDMA2000-1X-SIMPLE-IP");
        set(attrs, 0xBA, "CDMA2000-1X-MOBILE-IP");
        set(attrs, 0xC5, "AUTOBAUDING");
        set(attrs, 0xCA, "CL-WSP");
        set(attrs, 0xCB, "CO-WSP");
        set(attrs, 0xCC, "CL-SEC-WSP");
        set(attrs, 0xCD, "CO-SEC-WSP");
        set(attrs, 0xCE, "CL-SEC-WTA");
        set(attrs, 0xCF, "CO-SEC-WTA");
        set(attrs, 0xD0, "OTA-HTTP-TO");
        set(attrs, 0xD1, "OTA-HTTP-TLS-TO");
        set(attrs, 0xD2, "OTA-HTTP-PO");
        set(attrs, 0xD3, "OTA-HTTP-TLS-PO");
        set(attrs, 0xE0, "AAA");
        set(attrs, 0xE1, "HA");
        set(attrs, 0x105, "name");
        set(attrs, 0x106, "value");
        set(attrs, 0x107, "name=NAME");
        set(attrs, 0x114, "name=INTERNET");
        set(attrs, 0x11C, "name=STARTPAGE");
        set(attrs, 0x122, "name=TO-NAPID");
        set(attrs, 0x123, "name=PORTNBR");
        set(attrs, 0x124, "name=SERVICE");
        set(attrs, 0x12E, "name=AACCEPT");
        set(attrs, 0x12F, "name=AAUTHDATA");
        set(attrs, 0x130, "name=AAUTHLEVEL");
        set(attrs, 0x131, "name=AAUTHNAME");
        set(attrs, 0x132, "name=AAUTHSECRET");
        set(attrs, 0x133, "name=AAUTHTYPE");
        set(attrs, 0x134, "name=ADDR");
        set(attrs, 0x135, "name=ADDRTYPE");
        set(attrs, 0x136, "name=APPID");
        set(attrs, 0x137, "name=APROTOCOL");
        set(attrs, 0x138, "name=PROVIDER-ID");
        set(attrs, 0x139, "name=TO-PROXY");
        set(attrs, 0x13A, "name=URI");
        set(attrs, 0x13B, "name=RULE");
        set(attrs, 0x150, "type");
        set(attrs, 0x153, "type=PORT");
        set(attrs, 0x155, "type=APPLICATION");
        set(attrs, 0x156, "type=APPADDR");
        set(attrs, 0x157, "type=APPAUTH");
        set(attrs, 0x158, "type=CLIENTIDENTITY");
        set(attrs, 0x159, "type=RESOURCE");
        set(attrs, 0x180, ",");         // OMA-WAP-ProvCont-V1_1-20021112-C.pdf
        set(attrs, 0x181, "HTTP-");     // OMA-WAP-ProvCont-V1_1-20021112-C.pdf
        set(attrs, 0x182, "BASIC");     // OMA-WAP-ProvCont-V1_1-20021112-C.pdf
        set(attrs, 0x183, "DIGEST");    // OMA-WAP-ProvCont-V1_1-20021112-C.pdf
        set(attrs, 0x186, "IPV6");
        set(attrs, 0x187, "E164");
        set(attrs, 0x188, "ALPHA");
        set(attrs, 0x18D, "APPSRV");
        set(attrs, 0x18E, "OBEX");
        set(attrs, 0x190, ",");         // OMA-WAP-ProvCont-v1_1-20050428-C.pdf
        set(attrs, 0x191, "HTTP-");     // OMA-WAP-ProvCont-v1_1-20050428-C.pdf
        set(attrs, 0x192, "BASIC");     // OMA-WAP-ProvCont-v1_1-20050428-C.pdf
        set(attrs, 0x193, "DIGEST");    // OMA-WAP-ProvCont-v1_1-20050428-C.pdf

    } else {

        // Nokia Over The Air Settings Specification 7.0.

        set(tags, 0x05, "characteristic-list");
        set(tags, 0x06, "characteristic");
        set(tags, 0x07, "parm");

        set(attrs, 0x06, "type=ADDRESS");
        set(attrs, 0x07, "type=URL");
        set(attrs, 0x08, "type=NAME");
        set(attrs, 0x10, "name");
        set(attrs, 0x11, "value");
        set(attrs, 0x12, "name=BEARER");
        set(attrs, 0x13, "name=PROXY");
        set(attrs, 0x14, "name=PORT");
        set(attrs, 0x15, "name=NAME");
        set(attrs, 0x16, "name=PROXY_TYPE");
        set(attrs, 0x17, "name=URL");
        set(attrs, 0x18, "name=PROXY_AUTHNAME");
        set(attrs, 0x19, "name=PROXY_AUTHSECRET");
        set(attrs, 0x1A, "name=SMS_SMSC_ADDRESS");
        set(attrs, 0x1B, "name=USSD_SERVICE_CODE");
        set(attrs, 0x1C, "name=GPRS_ACCESSPOINTNAME");
        set(attrs, 0x1D, "name=PPP_LOGINTYPE");
        set(attrs, 0x1E, "name=PROXY_LOGINTYPE");
        set(attrs, 0x21, "name=CSD_DIALSTRING");
        set(attrs, 0x22, "name=PPP_AUTHTYPE");
        set(attrs, 0x23, "name=PPP_AUTHNAME");
        set(attrs, 0x24, "name=PPP_AUTHSECRET");
        set(attrs, 0x28, "name=CSD_CALLTYPE");
        set(attrs, 0x29, "name=CSD_CALLSPEED");
        set(attrs, 0x45, "value=GSM/CSD");
        set(attrs, 0x46, "value=GSM/SMS");
        set(attrs, 0x47, "value=GSM/USSD");
        set(attrs, 0x48, "value=IS-136/CSD");
        set(attrs, 0x49, "value=GPRS");
        set(attrs, 0x60, "value=9200");
        set(attrs, 0x61, "value=9201");
        set(attrs, 0x62, "value=9202");
        set(attrs, 0x63, "value=9203");
        set(attrs, 0x64, "value=AUTOMATIC");
        set(attrs, 0x65, "value=MANUAL");
        set(attrs, 0x6A, "value=AUTO");
        set(attrs, 0x6B, "value=9600");
        set(attrs, 0x6C, "value=14400");
        set(attrs, 0x6D, "value=19200");
        set(attrs, 0x6E, "value=28880");
        set(attrs, 0x6F, "value=38400");
        set(attrs, 0x70, "value=PAP");
        set(attrs, 0x71, "value=CHAP");
        set(attrs, 0x72, "value=ANALOGUE");
        set(attrs, 0x73, "value=ISDN");
        set(attrs, 0x74, "value=43200");
        set(attrs, 0x75, "value=57600");
        set(attrs, 0x76, "value=MSISDN_NO");
        set(attrs, 0x77, "value=IPV4");
        set(attrs, 0x78, "value=MS_CHAP");
        set(attrs, 0x7C, "type=MMSURL");
        set(attrs, 0x7D, "type=ID");
        set(attrs, 0x7E, "name=ISP_NAME");
        set(attrs, 0x7F, "type=BOOKMARK");
    }

    setTagSets( tags, attrs );
}