Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals

context.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002, 2003 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This software is licensed as described in the file LICENSE.txt,
00006  * which you should have received as part of this distribution.
00007  *
00008  * This software consists of voluntary contributions made by many
00009  * individuals.  For exact contribution history, see the revision
00010  * history and logs, available at http://rapidsvn.tigris.org/.
00011  * ====================================================================
00012  */
00013 
00014 #ifndef _SVNCPP_CONTEXT_HPP_
00015 #define _SVNCPP_CONTEXT_HPP_ 
00016 
00017 // stl
00018 #include <string>
00019 
00020 // Subversion api
00021 #include "svn_client.h"
00022 
00023 // svncpp
00024 #include "pool.hpp"
00025 
00026 namespace svn
00027 {
00028   // forward declarations
00029   class ContextListener;
00030 
00036   class Context
00037   {
00038   public:
00042     Context ();
00043 
00049     Context (const Context &src);
00050 
00054     virtual ~Context ();
00055 
00061     void setAuthCache (bool value);
00062 
00066     void setLogin (const char * username, const char * password);
00067 
00071     operator svn_client_ctx_t * ();
00072 
00076     svn_client_ctx_t * ctx ();
00077 
00082     void reset ();
00083 
00089     void setLogMessage (const char * msg);
00090 
00096     const char * 
00097     getLogMessage () const;
00098     
00104     const char * 
00105     getUsername () const;
00106 
00112     const char *
00113     getPassword () const;
00114 
00122     void 
00123     setListener (ContextListener * listener);
00124 
00130     ContextListener * 
00131     getListener () const;
00132 
00133   private:
00134     struct Data;
00135     Data * m;
00136 
00140     Context & operator = (const Context &);
00141   };
00142 }
00143 
00144 #endif
00145 /* -----------------------------------------------------------------
00146  * local variables:
00147  * eval: (load-file "../../rapidsvn-dev.el")
00148  * end:
00149  */

Generated on Sat Dec 6 22:47:47 2003 for SvnCpp by doxygen 1.3.4