Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629602
CloneDialog.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
CloneDialog.h
View Options
#ifndef CLONEDIALOG_H
#define CLONEDIALOG_H
#include
<QDialog>
#include
<QThread>
#include
"Git.h"
namespace
Ui
{
class
CloneDialog
;
}
class
MainWindow
;
class
CloneThread
:
public
QThread
{
protected
:
// CloneDialog *caller;
GitPtr
g
;
QString
url
;
QString
into
;
bool
ok
=
false
;
QString
errmsg
;
virtual
void
run
()
{
ok
=
g
->
clone
(
Git
::
preclone
(
url
,
into
));
if
(
!
ok
)
{
errmsg
=
g
->
errorMessage
();
}
// emit caller->done();
}
public
:
CloneThread
(
GitPtr
g
,
QString
const
&
url
,
QString
const
&
into
)
:
g
(
g
)
,
url
(
url
)
,
into
(
into
)
{
}
};
class
CloneDialog
:
public
QDialog
{
Q_OBJECT
friend
class
CloneThread
;
private
:
struct
Private
;
Private
*
pv
;
bool
ok
=
false
;
QString
errmsg
;
typedef
std
::
shared_ptr
<
Git
>
GitPtr
;
public
:
explicit
CloneDialog
(
QWidget
*
parent
,
QString
const
&
url
,
QString
const
&
defworkdir
);
~
CloneDialog
();
QString
url
();
QString
dir
();
private
:
Ui
::
CloneDialog
*
ui
;
MainWindow
*
mainwindow
();
private
slots
:
void
on_lineEdit_repo_location_textChanged
(
const
QString
&
arg1
);
void
on_pushButton_test_clicked
();
};
#endif
// CLONEDIALOG_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 7:18 AM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152148
Default Alt Text
CloneDialog.h (1 KB)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline