KDevelop API Documentation

CheckoutDialog Class Reference

This dialog widget will collect all useful informazion about the module the user want to to check-out from a remote repository. More...

#include <checkoutdialog.h>

Inheritance diagram for CheckoutDialog:

Inheritance graph
[legend]
Collaboration diagram for CheckoutDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CheckoutDialog (CvsService_stub *cvsService, QWidget *parent=0, const char *name=0, WFlags f=0)
virtual ~CheckoutDialog ()
virtual void slotOk ()
QString serverPath () const
void fillServerPaths (const QStringList &serverPaths)
QString workDir () const
void setWorkDir (const QString &aDir)
QString module () const
bool pruneDirs () const
QString tag () const

Private Slots

void slotModuleSelected (QListViewItem *item)
void slotFetchModulesList ()
virtual void slotJobExited (bool normalExit, int exitStatus)
virtual void slotReceivedOutput (QString someOutput)
virtual void slotReceivedErrors (QString someErrors)

Private Member Functions

void fetchUserCvsRepositories ()
 Retrives the known servers from $HOME/.cvspass file.

Private Attributes

CvsService_stub * m_service
CvsJob_stub * m_job
CheckoutDialogBasem_base

Detailed Description

This dialog widget will collect all useful informazion about the module the user want to to check-out from a remote repository.

Author:
Mario Scalas

Definition at line 30 of file checkoutdialog.h.


Constructor & Destructor Documentation

CheckoutDialog::CheckoutDialog CvsService_stub *  cvsService,
QWidget parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 70 of file checkoutdialog.cpp.

References CheckoutDialogBase::fetchModulesButton, fetchUserCvsRepositories(), m_base, CheckoutDialogBase::modulesListView, KConfigBase::readPathEntry(), KConfigBase::setGroup(), KDialogBase::setMainWidget(), KURLRequester::setMode(), KURLRequester::setShowLocalProtocol(), setWorkDir(), slotFetchModulesList(), slotModuleSelected(), and CheckoutDialogBase::workURLRequester.

CheckoutDialog::~CheckoutDialog  )  [virtual]
 

Definition at line 100 of file checkoutdialog.cpp.


Member Function Documentation

void CheckoutDialog::fetchUserCvsRepositories  )  [private]
 

Retrives the known servers from $HOME/.cvspass file.

Returns:
a list of server locations (:pserver:user@server.somewhere:/cvsroot)

Definition at line 231 of file checkoutdialog.cpp.

References fillServerPaths().

Referenced by CheckoutDialog().

void CheckoutDialog::fillServerPaths const QStringList serverPaths  ) 
 

Parameters:
serverPaths a list of server location to use when filling the widget

Definition at line 114 of file checkoutdialog.cpp.

References m_base, and CheckoutDialogBase::serverPaths.

Referenced by fetchUserCvsRepositories().

QString CheckoutDialog::module  )  const
 

Returns:
the module the user has chosen to check-out from repository

Definition at line 149 of file checkoutdialog.cpp.

References m_base, and CheckoutDialogBase::moduleEdit.

Referenced by CvsServicePartImpl::checkout(), and slotOk().

bool CheckoutDialog::pruneDirs  )  const
 

Returns:

Definition at line 135 of file checkoutdialog.cpp.

References m_base, and CheckoutDialogBase::pruneDirsCheck.

Referenced by CvsServicePartImpl::checkout().

QString CheckoutDialog::serverPath  )  const
 

Returns:
a server path string (i.e. :pserver:marios@cvs.kde.org:/home/kde)

Definition at line 107 of file checkoutdialog.cpp.

References m_base, and CheckoutDialogBase::serverPaths.

Referenced by CvsServicePartImpl::checkout(), slotFetchModulesList(), and slotOk().

void CheckoutDialog::setWorkDir const QString aDir  ) 
 

Parameters:
aDir directory which fetched modules will be put in (ending with '/')

Definition at line 128 of file checkoutdialog.cpp.

References m_base, KURLRequester::setURL(), and CheckoutDialogBase::workURLRequester.

Referenced by CheckoutDialog().

void CheckoutDialog::slotFetchModulesList  )  [private, slot]
 

Definition at line 156 of file checkoutdialog.cpp.

References DCOPRef::app(), DCOPObject::connectDCOPSignal(), kdDebug(), m_job, m_service, DCOPRef::obj(), serverPath(), and workDir().

Referenced by CheckoutDialog().

void CheckoutDialog::slotJobExited bool  normalExit,
int  exitStatus
[private, virtual, slot]
 

Implements CVSServiceDCOPIface.

Definition at line 179 of file checkoutdialog.cpp.

References kdDebug(), and m_job.

void CheckoutDialog::slotModuleSelected QListViewItem item  )  [private, slot]
 

Definition at line 218 of file checkoutdialog.cpp.

References ModuleListViewItem::alias(), m_base, CheckoutDialogBase::moduleEdit, and CheckoutDialogBase::modulesListView.

Referenced by CheckoutDialog().

void CheckoutDialog::slotOk  )  [virtual]
 

Reimplemented from KDialogBase.

Definition at line 258 of file checkoutdialog.cpp.

References KMessageBox::error(), module(), serverPath(), KDialogBase::slotOk(), and workDir().

void CheckoutDialog::slotReceivedErrors QString  someErrors  )  [private, virtual, slot]
 

Implements CVSServiceDCOPIface.

Definition at line 211 of file checkoutdialog.cpp.

References kdDebug().

void CheckoutDialog::slotReceivedOutput QString  someOutput  )  [private, virtual, slot]
 

Implements CVSServiceDCOPIface.

Definition at line 190 of file checkoutdialog.cpp.

References kdDebug(), m_base, and CheckoutDialogBase::modulesListView.

QString CheckoutDialog::tag  )  const
 

Returns:

Definition at line 142 of file checkoutdialog.cpp.

References m_base, and CheckoutDialogBase::tagEdit.

Referenced by CvsServicePartImpl::checkout().

QString CheckoutDialog::workDir  )  const
 

Returns:
the directory which the user has fetched the module in

Definition at line 121 of file checkoutdialog.cpp.

References m_base, KURLRequester::url, and CheckoutDialogBase::workURLRequester.

Referenced by CvsServicePartImpl::checkout(), slotFetchModulesList(), and slotOk().


Member Data Documentation

CheckoutDialogBase* CheckoutDialog::m_base [private]
 

Definition at line 87 of file checkoutdialog.h.

Referenced by CheckoutDialog(), fillServerPaths(), module(), pruneDirs(), serverPath(), setWorkDir(), slotModuleSelected(), slotReceivedOutput(), tag(), and workDir().

CvsJob_stub* CheckoutDialog::m_job [private]
 

Definition at line 85 of file checkoutdialog.h.

Referenced by slotFetchModulesList(), and slotJobExited().

CvsService_stub* CheckoutDialog::m_service [private]
 

Definition at line 84 of file checkoutdialog.h.

Referenced by slotFetchModulesList().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:19:57 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003