root/apps/windows_mobile/trunk/Smartphone/DottelSP/TelnicMain/XMLReader.h
@
371
| Revision 371, 2.1 kB (checked in by nadya, 4 years ago) |
|---|
| 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: XMLReader.h |
| 23 | * Description: |
| 24 | * Implementation of the XML reader class |
| 25 | */ |
| 26 | |
| 27 | #pragma once |
| 28 | |
| 29 | class CXMLReader |
| 30 | { |
| 31 | private: |
| 32 | CXMLReader(void); |
| 33 | public: |
| 34 | ~CXMLReader(void); |
| 35 | private: |
| 36 | BOOL m_fileOpened; |
| 37 | CString m_XMLContent; |
| 38 | public: |
| 39 | static CXMLReader& GetInstance(); |
| 40 | CString GetInitAPIURL(); |
| 41 | CString GetMemberAPIURL(); |
| 42 | CString GetSearchURL(); |
| 43 | CString GetRegistrationURL(); |
| 44 | int GetInitAPIPort(); |
| 45 | int GetmemberAPIPort(); |
| 46 | BOOL IsConfigAvailable(); |
| 47 | private: |
| 48 | CString GetXMLValue(CString openTag, CString closeTag); |
| 49 | }; |
| 50 | |
| 51 | //End.. |
Note: See TracBrowser
for help on using the browser.








