context.hpp
Go to the documentation of this file.
/*
* ====================================================================
* Copyright (c) 2002-2009 The RapidSvn Group. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program (in the file GPL.txt.
* If not, see <http://www.gnu.org/licenses/>.
*
* This software consists of voluntary contributions made by many
* individuals. For exact contribution history, see the revision
* history and logs, available at http://rapidsvn.tigris.org/.
* ====================================================================
*/
#ifndef _SVNCPP_CONTEXT_HPP_
#define _SVNCPP_CONTEXT_HPP_
// stl
#include "svncpp/string_wrapper.hpp"
// Subversion api
#include "svn_client.h"
// svncpp
#include "svncpp/pool.hpp"
namespace svn
{
// forward declarations
class ContextListener;
class Context
{
public:
Context(const std::string & configDir = "");
Context(const Context &src);
virtual ~Context();
void setAuthCache(bool value);
void setLogin(const char * username, const char * password);
operator svn_client_ctx_t * ();
svn_client_ctx_t * ctx();
void reset();
void setLogMessage(const char * msg);
const char *
getLogMessage() const;
const char *
getUsername() const;
const char *
getPassword() const;
void
setListener(ContextListener * listener);
ContextListener *
getListener() const;
private:
struct Data;
Data * m;
Context & operator = (const Context &);
};
}
#endif
/* -----------------------------------------------------------------
* local variables:
* eval: (load-file "../../rapidsvn-dev.el")
* end:
*/
svn::Context::getLogMessage
const char * getLogMessage() const
string_wrapper.hpp
svn::Context::ctx
svn_client_ctx_t * ctx()
svn::Context::setLogMessage
void setLogMessage(const char *msg)
svn::Context::getPassword
const char * getPassword() const
svn::Context
Definition: context.hpp:48
svn
Definition: annotate_line.hpp:31
svn::Context::~Context
virtual ~Context()
svn::Context::setListener
void setListener(ContextListener *listener)
svn::Context::getListener
ContextListener * getListener() const
svn::Context::setAuthCache
void setAuthCache(bool value)
svn::Context::setLogin
void setLogin(const char *username, const char *password)
svn::Context::reset
void reset()
svn::Context::Context
Context(const std::string &configDir="")
svn::ContextListener
Definition: context_listener.hpp:45
pool.hpp
svn::Context::getUsername
const char * getUsername() const