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 
00059     void setLogin (const char * username, const char * password);
00060 
00064     operator svn_client_ctx_t * ();
00065 
00069     svn_client_ctx_t * ctx ();
00070 
00075     void reset ();
00076 
00082     void setLogMessage (const char * msg);
00083 
00089     const char * 
00090     getLogMessage () const;
00091     
00097     const char * 
00098     getUsername () const;
00099 
00105     const char *
00106     getPassword () const;
00107 
00115     void 
00116     setListener (ContextListener * listener);
00117 
00123     ContextListener * 
00124     getListener () const;
00125 
00126   private:
00127     struct Data;
00128     Data * m;
00129 
00133     Context & operator = (const Context &);
00134   };
00135 }
00136 
00137 #endif
00138 /* -----------------------------------------------------------------
00139  * local variables:
00140  * eval: (load-file "../../rapidsvn-dev.el")
00141  * end:
00142  */

Generated on Thu Aug 28 13:22:35 2003 for SvnCpp by doxygen1.2.15