SvnCpp
context.hpp
Go to the documentation of this file.
1/*
2 * ====================================================================
3 * Copyright (c) 2002-2018 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 Lesser General Public License as
7 * published by the Free Software Foundation, either version 3 of the
8 * License, or (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 Lesser General Public
16 * License along with this program (in the file LGPL.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
30
31// Subversion api
32#include "svn_client.h"
33
34// svncpp
35#include "svncpp/pool.hpp"
36
37
38namespace 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 *
114
120 const char *
121 getUsername() const;
122
128 const char *
129 getPassword() const;
130
138 void
140
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 */
Definition context_listener.hpp:46
Definition context.hpp:49
virtual ~Context()
Context(const Context &src)
const char * getPassword() const
void setLogMessage(const char *msg)
Context(const std::string &configDir="")
void setListener(ContextListener *listener)
void setLogin(const char *username, const char *password)
svn_client_ctx_t * ctx()
void setAuthCache(bool value)
const char * getUsername() const
ContextListener * getListener() const
const char * getLogMessage() const
Definition annotate_line.hpp:32