File indexing completed on 2024-05-12 17:16:24
0001 /* 0002 * Port for usage with qt-framework and development for kdesvn 0003 * Copyright (C) 2005-2009 by Rajko Albrecht (ral@alwins-world.de) 0004 * http://kdesvn.alwins-world.de 0005 */ 0006 /* 0007 * ==================================================================== 0008 * Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved. 0009 * dev@rapidsvn.tigris.org 0010 * 0011 * This library is free software; you can redistribute it and/or 0012 * modify it under the terms of the GNU Lesser General Public 0013 * License as published by the Free Software Foundation; either 0014 * version 2.1 of the License, or (at your option) any later version. 0015 * 0016 * This library is distributed in the hope that it will be useful, 0017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0019 * Lesser General Public License for more details. 0020 * 0021 * You should have received a copy of the GNU Lesser General Public 0022 * License along with this library (in the file LGPL.txt); if not, 0023 * write to the Free Software Foundation, Inc., 51 Franklin St, 0024 * Fifth Floor, Boston, MA 02110-1301 USA 0025 * 0026 * This software consists of voluntary contributions made by many 0027 * individuals. For exact contribution history, see the revision 0028 * history and logs, available at http://rapidsvn.tigris.org/. 0029 * ==================================================================== 0030 */ 0031 0032 #ifndef SVNQT_LOCK_ENTRY_H 0033 #define SVNQT_LOCK_ENTRY_H 0034 0035 #include <svnqt/svnqt_defines.h> 0036 #include <svnqt/datetime.h> 0037 0038 #include <QString> 0039 0040 // apr 0041 #include <apr_time.h> 0042 0043 // subversion api 0044 #include <svn_types.h> 0045 #include <svn_wc.h> 0046 0047 namespace svn 0048 { 0049 class SVNQT_EXPORT LockEntry 0050 { 0051 public: 0052 LockEntry(); 0053 0054 LockEntry(const apr_time_t lock_time, 0055 const apr_time_t expiration_time, 0056 const char *lock_owner, 0057 const char *lock_comment, 0058 const char *lock_token); 0059 0060 void init(const svn_wc_entry_t *src); 0061 0062 void init(const apr_time_t lock_time, 0063 const apr_time_t expiration_time, 0064 const char *lock_owner, 0065 const char *lock_comment, 0066 const char *lock_token); 0067 void init(const svn_lock_t *); 0068 const QString &Comment()const; 0069 const QString &Owner()const; 0070 const QString &Token()const; 0071 const DateTime &Date()const; 0072 const DateTime &Expiration()const; 0073 bool Locked()const; 0074 0075 protected: 0076 DateTime date; 0077 DateTime exp; 0078 QString owner; 0079 QString comment; 0080 QString token; 0081 bool locked; 0082 }; 0083 } 0084 0085 #endif 0086 /* ----------------------------------------------------------------- 0087 * local variables: 0088 * eval: (load-file "../../rapidsvn-dev.el") 0089 * end: 0090 */ 0091