clonewizard.h 2.09 KB
Newer Older
cerf's avatar
cerf committed
1 2
/**************************************************************************
**
3
** Copyright (c) 2014 Hugues Delorme
4
** Contact: http://www.qt-project.org/legal
cerf's avatar
cerf committed
5
**
6
** This file is part of Qt Creator.
cerf's avatar
cerf committed
7
**
8 9 10 11 12 13 14
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
cerf's avatar
cerf committed
15 16
**
** GNU Lesser General Public License Usage
17 18 19 20 21 22
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL included in the
** packaging of this file.  Please review the following information to
** ensure the GNU Lesser General Public License version 2.1 requirements
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
cerf's avatar
cerf committed
23
**
hjk's avatar
hjk committed
24
** In addition, as a special exception, Digia gives you certain additional
25
** rights.  These rights are described in the Digia Qt LGPL Exception
cerf's avatar
cerf committed
26 27
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
28
****************************************************************************/
cerf's avatar
cerf committed
29 30 31 32

#ifndef CLONEWIZARD_H
#define CLONEWIZARD_H

33
#include <vcsbase/basecheckoutwizardfactory.h>
34
#include <vcsbase/basecheckoutwizard.h>
cerf's avatar
cerf committed
35

36
#include <QIcon>
cerf's avatar
cerf committed
37 38 39 40

namespace Bazaar {
namespace Internal {

41
class CloneWizardFactory : public VcsBase::BaseCheckoutWizardFactory
cerf's avatar
cerf committed
42 43
{
    Q_OBJECT
cerf's avatar
cerf committed
44

cerf's avatar
cerf committed
45
public:
46
    CloneWizardFactory();
cerf's avatar
cerf committed
47

48
    VcsBase::BaseCheckoutWizard *create(const Utils::FileName &path, QWidget *parent = 0) const;
cerf's avatar
cerf committed
49 50
};

51 52 53 54 55
class CloneWizard : public VcsBase::BaseCheckoutWizard
{
    Q_OBJECT

public:
56
    CloneWizard(const Utils::FileName &path, QWidget *parent = 0);
57 58

protected:
59
    VcsBase::Command *createCommand(Utils::FileName *checkoutDir);
60 61
};

62 63
} // namespace Internal
} // namespace Bazaar
cerf's avatar
cerf committed
64 65

#endif // CLONEWIZARD_H