Developer Area

root/apps/windows_mobile/trunk/Smartphone/DottelSP/TelnicMain/SOAPTel.h @ 371

Revision 371, 3.0 kB (checked in by nadya, 5 years ago)

updating code, changing telfriends login points

Line 
1/*
2 * Copyright (c) 2008, Telnic Ltd.
3 * All rights reserved.
4 * Redistribution and use in source and binary forms, with or without modification,
5 * are permitted provided that the following conditions are met:
6 * • Redistributions of source code must retain the above copyright notice,
7 *   this list of conditions and the following disclaimer.
8 * • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
9 *   the following disclaimer in the documentation and/or other materials provided with the distribution.
10 * • Neither the name of the Telnic Ltd. nor the names of its contributors may be used to endorse or promote
11 *   products derived from this software without specific prior written permission.
12 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
13 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
14 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
15 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
16 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
19 * THE POSSIBILITY OF SUCH DAMAGE.
20 */
21/*
22 * Filename: SOAPTel.h
23 * Description:
24 * Implementation the Soap related wrapper class
25 */
26
27#pragma once
28
29#include "TelnicSoapUtil.h"
30#include "Crypt.h"
31
32//Class definition TelnicSoap - singleton class
33class TelnicSoap
34{
35private:
36        TelnicSoap();
37public:
38                                               
39        ~TelnicSoap();
40
41        //calls when user clicked on logout.
42        //this method will delete the privatekey and registry entries.
43        BOOL UserLogout();
44       
45        //static method for creating the single instance. this is a singleton class
46        static TelnicSoap& GetInstance();
47        //Method which returns the status of the SOID and SOPwd
48        BOOL GetUserNamePwd();
49
50        //Method which retrives the SOID and SoPwd from the SOAP call
51        BOOL GetSOIDPwd(CString userID = NULL, CString userPasswrd = NULL, CString secAnswer = NULL);
52
53        //Method which get the secret question from the SOAP call
54        CString GetSecretQuestion(CString loginUserName, CString loginUserPwd);
55
56        //Method to get the publisher list from the SOAP call
57        XmlNode* GetPublisherList(int& count);
58
59        //wraper method which internally calls the Crypto decrypt method.
60        BOOL Decrypt(BYTE *strEncryptNaptr, BYTE *strDecryptNaptr, DWORD dwEncNaptrLen,
61                                                                                                        DWORD &dwDecrNaptrLen,BOOL bBase64Encoded);
62
63        BOOL IsLoggedIn();
64
65       
66       
67private:
68        CString         m_userName;                             //username
69        CString         m_userPwd;                              //password
70        CString         m_SOID;                                 //SOID
71        CString         m_SOPwd;                                //SOPwd
72        CString         m_ChallengeAns;                 //Challenge question
73        CryptoTelnic CryptTel;                          //member object CryptTel
74};
75
76//End--
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us