TrackGit
Public Member Functions | Private Attributes | List of all members
Clone Class Reference

Clone command Class. More...

#include <Clone.h>

Inheritance diagram for Clone:
GitCommand

Public Member Functions

 Clone (BString, BString)
 Clone class Constructor. More...
 
TrackGitWindowGetWindow ()
 This returns pointer to the clone window. More...
 
virtual void Execute ()
 Clone command execution. More...
 
pthread_t DoClone (CloneWindow *, const char *, const char *)
 Spawns a thread to clone. More...
 

Private Attributes

BString fRepo
 The repo/directory where the command is called. More...
 
BString fDirPath
 The current directory where Clone option is selected. More...
 
TrackGitWindowfCloneWindow
 The window to show progress. More...
 

Detailed Description

Clone command Class.

Definition at line 46 of file Clone.h.

Constructor & Destructor Documentation

◆ Clone()

Clone::Clone ( BString  repo,
BString  dirPath 
)

Clone class Constructor.

repo The repo where the command is called.

Parameters
dirPathThe current directory where Clone is selected.

Definition at line 23 of file Clone.cpp.

Member Function Documentation

◆ DoClone()

pthread_t Clone::DoClone ( CloneWindow cloneWindow,
const char *  url,
const char *  path 
)

Spawns a thread to clone.

Parameters
cloneWindowWindow to show progress.
urlThe url to clone.
pathThe path to clone to.

Definition at line 213 of file Clone.cpp.

◆ Execute()

void Clone::Execute ( )
virtual

Clone command execution.

Implements GitCommand.

Definition at line 50 of file Clone.cpp.

◆ GetWindow()

TrackGitWindow * Clone::GetWindow ( )
virtual

This returns pointer to the clone window.

Returns
The Clone Window;

Reimplemented from GitCommand.

Definition at line 38 of file Clone.cpp.

Member Data Documentation

◆ fCloneWindow

TrackGitWindow* Clone::fCloneWindow
private

The window to show progress.

Definition at line 58 of file Clone.h.

◆ fDirPath

BString Clone::fDirPath
private

The current directory where Clone option is selected.

Definition at line 54 of file Clone.h.

◆ fRepo

BString Clone::fRepo
private

The repo/directory where the command is called.

Definition at line 50 of file Clone.h.


The documentation for this class was generated from the following files: