~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/dom/io/httpclient.h

  • Committer: JazzyNico
  • Date: 2011-08-29 20:25:30 UTC
  • Revision ID: nicoduf@yahoo.fr-20110829202530-6deuoz11q90usldv
Code refactoring and merging with trunk (revision 10599).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __HTTPCLIENT_H__
2
 
#define __HTTPCLIENT_H__
3
 
/**
4
 
 * Phoebe DOM Implementation.
5
 
 *
6
 
 * This is a C++ approximation of the W3C DOM model, which follows
7
 
 * fairly closely the specifications in the various .idl files, copies of
8
 
 * which are provided for reference.  Most important is this one:
9
 
 *
10
 
 * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html
11
 
 *
12
 
 * Authors:
13
 
 *   Bob Jamison
14
 
 *
15
 
 * Copyright (C) 2006 Bob Jamison
16
 
 *
17
 
 *  This library is free software; you can redistribute it and/or
18
 
 *  modify it under the terms of the GNU Lesser General Public
19
 
 *  License as published by the Free Software Foundation; either
20
 
 *  version 2.1 of the License, or (at your option) any later version.
21
 
 *
22
 
 *  This library is distributed in the hope that it will be useful,
23
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
24
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
25
 
 *  Lesser General Public License for more details.
26
 
 *
27
 
 *  You should have received a copy of the GNU Lesser General Public
28
 
 *  License along with this library; if not, write to the Free Software
29
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
30
 
 */
31
 
 
32
 
 
33
 
 
34
 
#include "dom/dom.h"
35
 
#include "dom/uri.h"
36
 
#include "dom/io/socket.h"
37
 
 
38
 
namespace org
39
 
{
40
 
namespace w3c
41
 
{
42
 
namespace dom
43
 
{
44
 
namespace io
45
 
{
46
 
 
47
 
 
48
 
 
49
 
 
50
 
 
51
 
 
52
 
class HttpClient
53
 
{
54
 
 
55
 
public:
56
 
 
57
 
    /**
58
 
     *
59
 
     */
60
 
    HttpClient();
61
 
 
62
 
    /**
63
 
     *
64
 
     */
65
 
    virtual ~HttpClient();
66
 
 
67
 
    /**
68
 
     *
69
 
     */
70
 
    bool openGet(const URI &uri);
71
 
 
72
 
    /**
73
 
     *
74
 
     */
75
 
    int read();
76
 
 
77
 
    /**
78
 
     *
79
 
     */
80
 
    bool write(int ch);
81
 
 
82
 
    /**
83
 
     *
84
 
     */
85
 
    bool write(const DOMString &msg);
86
 
 
87
 
    /**
88
 
     *
89
 
     */
90
 
    bool close();
91
 
 
92
 
 
93
 
private:
94
 
 
95
 
 
96
 
    TcpSocket socket;
97
 
 
98
 
};
99
 
 
100
 
 
101
 
 
102
 
 
103
 
}  //namespace io
104
 
}  //namespace dom
105
 
}  //namespace w3c
106
 
}  //namespace org
107
 
 
108
 
 
109
 
#endif /* __HTTPCLIENT_H__ */
110
 
 
111
 
 
112
 
//#########################################################################
113
 
//# E N D    O F    F I L E
114
 
//#########################################################################
115