1 // TortoiseSVN - a Windows shell extension for easy version control
\r
3 // Copyright (C) 2007-2007 - TortoiseSVN
\r
5 // This program is free software; you can redistribute it and/or
\r
6 // modify it under the terms of the GNU General Public License
\r
7 // as published by the Free Software Foundation; either version 2
\r
8 // of the License, or (at your option) any later version.
\r
10 // This program is distributed in the hope that it will be useful,
\r
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 // GNU General Public License for more details.
\r
15 // You should have received a copy of the GNU General Public License
\r
16 // along with this program; if not, write to the Free Software Foundation,
\r
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\r
21 ///////////////////////////////////////////////////////////////
\r
22 // temporarily used to disambiguate LogChangedPath definitions
\r
23 ///////////////////////////////////////////////////////////////
\r
25 #ifndef __ILOGRECEIVER_H__
\r
26 #define __ILOGRECEIVER_H__
\r
29 ///////////////////////////////////////////////////////////////
\r
30 // required includes
\r
31 ///////////////////////////////////////////////////////////////
\r
33 //#include "svn_types.h"
\r
37 * data structure to accommodate the change list.
\r
39 struct LogChangedPath
\r
42 // CString sCopyFromPath;
\r
43 CString lCopyFromRev;
\r
46 /// returns the action as a string
\r
47 const CString& GetAction() const;
\r
51 /// cached return value of GetAction()
\r
52 mutable CString actionAsString;
\r
57 /// auto-deleting extension of MFC Arrays for pointer arrays
\r
60 class CAutoArray : public CArray<T*,T*>
\r
64 // default and copy construction
\r
70 CAutoArray (const CAutoArray& rhs)
\r
75 // destruction deletes members
\r
79 for (INT_PTR i = 0, count = GetCount(); i < count; ++i)
\r
84 typedef CAutoArray<LogChangedPath> LogChangedPathArray;
\r
87 * standard revision properties
\r
90 struct StandardRevProps
\r
93 // apr_time_t timeStamp;
\r
98 * data structure to accommodate the list of user-defined revision properties.
\r
106 typedef CAutoArray<UserRevProp> UserRevPropArray;
\r
110 * Interface for receiving log information. It will be used as a callback
\r
111 * in ILogQuery::Log().
\r
113 * To cancel the log and/or indicate errors, throw an SVNError exception.
\r
119 /// call-back for every revision found
\r
120 /// (called at most once per revision)
\r
122 /// the implementation may modify but not delete()
\r
123 /// the data containers passed to it
\r
125 /// any pointer may be NULL
\r
127 /// may throw a SVNError to cancel the log
\r
129 virtual void ReceiveLog ( LogChangedPathArray* changes
\r
131 , const StandardRevProps* stdRevProps
\r
132 , UserRevPropArray* userRevProps
\r
133 , bool mergesFollow) = 0;
\r