You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
183 lines
4.1 KiB
183 lines
4.1 KiB
15 years ago
|
/*
|
||
13 years ago
|
* Port for usage with qt-framework and development for tdesvn
|
||
15 years ago
|
* (C) 2005-2007 by Rajko Albrecht
|
||
13 years ago
|
* http://tdesvn.alwins-world.de
|
||
15 years ago
|
*/
|
||
|
/*
|
||
|
* ====================================================================
|
||
|
* Copyright (c) 2002-2005 The RapidSvn Group. All rights reserved.
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Lesser General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2.1 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Lesser General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Lesser General Public
|
||
|
* License along with this library (in the file LGPL.txt); if not,
|
||
|
* write to the Free Software Foundation, Inc., 51 Franklin St,
|
||
|
* Fifth Floor, Boston, MA 02110-1301 USA
|
||
|
*
|
||
|
* This software consists of voluntary contributions made by many
|
||
|
* individuals. For exact contribution history, see the revision
|
||
|
* history and logs, available at http://rapidsvn.tigris.org/.
|
||
|
* ====================================================================
|
||
|
*/
|
||
|
#ifndef _SVNCPP_STATUS_HPP_
|
||
|
#define _SVNCPP_STATUS_HPP_
|
||
|
|
||
|
// subversion api
|
||
|
#include "svn_wc.h"
|
||
|
|
||
|
// svncpp
|
||
4 years ago
|
#include "svnqt/svnqttypes.h"
|
||
|
#include "svnqt/entry.h"
|
||
|
#include "svnqt/pool.h"
|
||
|
#include "svnqt/lock_entry.h"
|
||
|
#include "svnqt/dirent.h"
|
||
|
#include "svnqt/info_entry.h"
|
||
|
#include "svnqt/svnqt_defines.h"
|
||
15 years ago
|
|
||
|
namespace svn
|
||
|
{
|
||
|
/**
|
||
|
* Subversion status API. This class wraps around
|
||
|
* @a svn_wc_status_t.
|
||
|
*
|
||
4 years ago
|
* @see svn_wc.h
|
||
15 years ago
|
* @see svn_wc_status_t
|
||
|
*/
|
||
|
class Status_private;
|
||
|
|
||
13 years ago
|
class SVNTQT_EXPORT Status
|
||
15 years ago
|
{
|
||
|
public:
|
||
|
/**
|
||
|
* copy constructor
|
||
|
*/
|
||
13 years ago
|
Status (const Status & src);
|
||
15 years ago
|
|
||
|
/**
|
||
|
* default constructor
|
||
|
*
|
||
|
* @param path path for this status entry
|
||
|
* @param status status entry
|
||
|
*/
|
||
13 years ago
|
Status (const TQString&path=TQString(), svn_wc_status2_t * status = NULL);
|
||
15 years ago
|
/**
|
||
|
* default constructor
|
||
|
*
|
||
|
* @param path path for this status entry
|
||
|
* @param status status entry
|
||
|
*/
|
||
13 years ago
|
Status (const char*path, svn_wc_status2_t * status = NULL);
|
||
15 years ago
|
/**
|
||
|
* converting constructor
|
||
|
*/
|
||
13 years ago
|
Status(const TQString&path,const DirEntryPtr&src);
|
||
15 years ago
|
/**
|
||
|
* converting constructor
|
||
|
*/
|
||
13 years ago
|
Status(const TQString&path,const InfoEntry&src);
|
||
15 years ago
|
|
||
|
/**
|
||
|
* destructor
|
||
|
*/
|
||
13 years ago
|
virtual ~Status ();
|
||
15 years ago
|
|
||
|
/**
|
||
|
* @return path of status entry
|
||
|
*/
|
||
14 years ago
|
const TQString&
|
||
15 years ago
|
path () const;
|
||
|
|
||
|
/**
|
||
|
* @return entry for this path
|
||
|
* @retval entry.isValid () = false item is not versioned
|
||
|
*/
|
||
|
const Entry&
|
||
|
entry () const;
|
||
|
/**
|
||
|
* @return file status property enum of the "textual" component.
|
||
|
*/
|
||
|
svn_wc_status_kind
|
||
13 years ago
|
textStatus () const;
|
||
15 years ago
|
|
||
|
/**
|
||
|
* @return file status property enum of the "property" component.
|
||
|
*/
|
||
|
svn_wc_status_kind
|
||
13 years ago
|
propStatus () const;
|
||
15 years ago
|
|
||
|
/**
|
||
|
* @retval TRUE if under version control
|
||
|
*/
|
||
|
bool
|
||
|
isVersioned () const;
|
||
|
|
||
|
/**
|
||
|
* @retval TRUE if under version control and not ignored
|
||
|
*/
|
||
|
bool
|
||
|
isRealVersioned()const;
|
||
|
|
||
|
/**
|
||
|
* @retval TRUE if under version control and local modified
|
||
|
*/
|
||
|
bool
|
||
|
isModified()const;
|
||
|
|
||
|
/**
|
||
|
* @retval TRUE if locked
|
||
|
*/
|
||
|
bool
|
||
|
isLocked () const;
|
||
|
|
||
|
/**
|
||
|
* @retval TRUE if copied
|
||
|
*/
|
||
|
bool
|
||
|
isCopied () const;
|
||
|
|
||
|
/**
|
||
|
* @retval TRUE if switched
|
||
|
*/
|
||
|
bool
|
||
|
isSwitched () const;
|
||
|
/**
|
||
|
* @return the entry's text status in the repository
|
||
|
*/
|
||
|
svn_wc_status_kind
|
||
13 years ago
|
reposTextStatus () const;
|
||
15 years ago
|
/**
|
||
|
* @return the entry's prop status in the repository
|
||
|
*/
|
||
|
svn_wc_status_kind
|
||
13 years ago
|
reposPropStatus () const;
|
||
15 years ago
|
|
||
|
const LockEntry&
|
||
|
lockEntry () const;
|
||
|
|
||
|
bool
|
||
13 years ago
|
validReposStatus()const;
|
||
15 years ago
|
|
||
|
bool
|
||
13 years ago
|
validLocalStatus()const;
|
||
15 years ago
|
|
||
|
|
||
|
/**
|
||
|
* assignment operator
|
||
|
*/
|
||
13 years ago
|
Status &
|
||
|
operator = (const Status &);
|
||
15 years ago
|
private:
|
||
|
Status_private*m_Data;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|