SvnCpp
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
include
svncpp
context.hpp
Go to the documentation of this file.
1
/*
2
* ====================================================================
3
* Copyright (c) 2002-2009 The RapidSvn Group. All rights reserved.
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program (in the file GPL.txt.
17
* If not, see <http://www.gnu.org/licenses/>.
18
*
19
* This software consists of voluntary contributions made by many
20
* individuals. For exact contribution history, see the revision
21
* history and logs, available at http://rapidsvn.tigris.org/.
22
* ====================================================================
23
*/
24
25
#ifndef _SVNCPP_CONTEXT_HPP_
26
#define _SVNCPP_CONTEXT_HPP_
27
28
// stl
29
#include "
svncpp/string_wrapper.hpp
"
30
31
// Subversion api
32
#include "svn_client.h"
33
34
// svncpp
35
#include "
svncpp/pool.hpp
"
36
37
38
namespace
svn
39
{
40
// forward declarations
41
class
ContextListener;
42
48
class
Context
49
{
50
public
:
58
Context
(
const
std::string & configDir =
""
);
59
65
Context
(
const
Context
&src);
66
70
virtual
~Context
();
71
77
void
setAuthCache
(
bool
value);
78
82
void
setLogin
(
const
char
* username,
const
char
* password);
83
87
operator
svn_client_ctx_t * ();
88
92
svn_client_ctx_t *
ctx
();
93
98
void
reset
();
99
105
void
setLogMessage
(
const
char
* msg);
106
112
const
char
*
113
getLogMessage
()
const
;
114
120
const
char
*
121
getUsername
()
const
;
122
128
const
char
*
129
getPassword
()
const
;
130
138
void
139
setListener
(
ContextListener
* listener);
140
146
ContextListener
*
147
getListener
()
const
;
148
149
private
:
150
struct
Data;
151
Data * m;
152
156
Context
& operator = (
const
Context
&);
157
};
158
}
159
160
#endif
161
/* -----------------------------------------------------------------
162
* local variables:
163
* eval: (load-file "../../rapidsvn-dev.el")
164
* end:
165
*/
Generated on Sat Mar 15 2014 19:01:32 for SvnCpp by
1.8.1.2