1
/***************************************************************************
2
* Copyright (C) 1999-2001 by Bernd Gehrmann *
4
* Extended to use perforce 2002 by Harald Fernengel <harry@kdevelop.org>*
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
***************************************************************************/
13
#ifndef _PERFORCEPART_H_
14
#define _PERFORCEPART_H_
16
#include <kdevversioncontrol.h>
23
class PerforcePart : public KDevVersionControl
28
PerforcePart( QObject *parent, const char *name, const QStringList & );
31
virtual QString shortDescription() const
32
{ return i18n( "Perforce is a version control system" ); }
34
virtual void createNewProject(const QString& dir) {}
35
virtual bool fetchFromRepository() { return true; }
36
virtual KDevVCSFileInfoProvider *fileInfoProvider() const { return 0; }
37
virtual bool isValidDirectory(const QString &dirPath) const { return true; }
40
void contextMenu(QPopupMenu *popup, const Context *context);
49
void slotActionCommit();
50
void slotActionUpdate();
52
void slotActionRemove();
53
void slotActionEdit();
54
void slotActionRevert();
55
void slotActionDiff();
57
void slotDiffFinished( const QString&, const QString& );
60
void commit( const QString& filename );
61
void update( const QString& filename );
62
void add( const QString& filename );
63
void remove( const QString& filename );
64
void edit( const QString& filename );
65
void revert( const QString& filename );
66
void diff( const QString& filename );
67
QString currentFile();
69
/** calls p4 with the command cmd and appends the filename */
70
void execCommand( const QString& cmd, const QString& filename );
73
KAction *actionEdit, *actionRevert,
74
*actionSubmit, *actionSync,
75
*actionDiff, *actionAdd, *actionRemove;