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

context.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2004 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 "svncpp/pool.hpp"
00025 
00026 
00027 namespace svn
00028 {
00029   // forward declarations
00030   class ContextListener;
00031 
00037   class Context
00038   {
00039   public:
00047     Context (const std::string & configDir="");
00048 
00054     Context (const Context &src);
00055 
00059     virtual ~Context ();
00060 
00066     void setAuthCache (bool value);
00067 
00071     void setLogin (const char * username, const char * password);
00072 
00076     operator svn_client_ctx_t * ();
00077 
00081     svn_client_ctx_t * ctx ();
00082 
00087     void reset ();
00088 
00094     void setLogMessage (const char * msg);
00095 
00101     const char * 
00102     getLogMessage () const;
00103     
00109     const char * 
00110     getUsername () const;
00111 
00117     const char *
00118     getPassword () const;
00119 
00127     void 
00128     setListener (ContextListener * listener);
00129 
00135     ContextListener * 
00136     getListener () const;
00137 
00138   private:
00139     struct Data;
00140     Data * m;
00141 
00145     Context & operator = (const Context &);
00146   };
00147 }
00148 
00149 #endif
00150 /* -----------------------------------------------------------------
00151  * local variables:
00152  * eval: (load-file "../../rapidsvn-dev.el")
00153  * end:
00154  */

Generated on Tue Feb 8 10:14:11 2005 for SvnCpp by  doxygen 1.3.9.1