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

The Clone Window class. More...

#include <CloneWindow.h>

Inheritance diagram for CloneWindow:
TrackGitWindow

Public Member Functions

 CloneWindow (BString, BString, Clone *)
 Constructor for CloneWindow. More...
 
void SetProgressText (BString)
 Prints progress text to textview of window. More...
 
void SetProgress (float)
 Sets the progress value of the progress bar in progress window. More...
 
virtual void MessageReceived (BMessage *)
 The handler to receive messages. More...
 
- Public Member Functions inherited from TrackGitWindow
 TrackGitWindow (BString repo, BRect frame, const char *title, window_type type, int flags)
 The TrackGitWindow constructor. More...
 
virtual void Quit ()
 The function to Quit the window. More...
 

Private Attributes

CloneProgressWindowfProgressWindow
 The progress window. More...
 
BTextControl * fURL
 The text control for url. More...
 
PathBox * fPathBox
 The text control for path. More...
 
ClonefClone
 The clone command pointer. More...
 
pthread_t fThreadId
 The thread Id of clone thread. More...
 

Additional Inherited Members

- Protected Attributes inherited from TrackGitWindow
BString fRepo
 The repo/directory where the command is called. More...
 

Detailed Description

The Clone Window class.

Definition at line 30 of file CloneWindow.h.

Constructor & Destructor Documentation

◆ CloneWindow()

CloneWindow::CloneWindow ( BString  repo,
BString  dirPath,
Clone clone 
)

Constructor for CloneWindow.

Parameters
repoThe repo where command is called.
dirPathThe current directory where clone optionn is selected.
cloneThe Clone command.

Definition at line 25 of file CloneWindow.cpp.

Member Function Documentation

◆ MessageReceived()

void CloneWindow::MessageReceived ( BMessage *  msg)
virtual

The handler to receive messages.

Parameters
msgThe message.

Definition at line 82 of file CloneWindow.cpp.

◆ SetProgress()

void CloneWindow::SetProgress ( float  progress)

Sets the progress value of the progress bar in progress window.

Parameters
progressThe progress value.

Definition at line 71 of file CloneWindow.cpp.

◆ SetProgressText()

void CloneWindow::SetProgressText ( BString  text)

Prints progress text to textview of window.

Parameters
textThe progress text.

Definition at line 60 of file CloneWindow.cpp.

Member Data Documentation

◆ fClone

Clone* CloneWindow::fClone
private

The clone command pointer.

Used to initiate cloning process.

Definition at line 47 of file CloneWindow.h.

◆ fPathBox

PathBox* CloneWindow::fPathBox
private

The text control for path.

Definition at line 42 of file CloneWindow.h.

◆ fProgressWindow

CloneProgressWindow* CloneWindow::fProgressWindow
private

The progress window.

Definition at line 34 of file CloneWindow.h.

◆ fThreadId

pthread_t CloneWindow::fThreadId
private

The thread Id of clone thread.

Definition at line 51 of file CloneWindow.h.

◆ fURL

BTextControl* CloneWindow::fURL
private

The text control for url.

Definition at line 38 of file CloneWindow.h.


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