KDevelop API Documentation

CopyToPart Class Reference

Plugin that does basic filecopying using KIO. More...

#include <copyto_part.h>

Inheritance diagram for CopyToPart:

Inheritance graph
[legend]
Collaboration diagram for CopyToPart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CopyToPart (QObject *parent, const char *name, const QStringList &)
 ~CopyToPart ()

Private Slots

void contextMenu (QPopupMenu *popup, const Context *context)
void doCopy ()

Private Member Functions

QString relativeProjectPath (QString path)

Private Attributes

KURL::List _fileList

Detailed Description

Plugin that does basic filecopying using KIO.

This plugin can be used in webbased projects (PHP) to upload a local file to the server. It also makes a nice compilment to the FileSelector plugin which can browser remote filesystems. Using the CopyTo plugin it is now possible to download what you find.. ;)

Still very basic, doesn't do a lot of the niceties one expects (history, error checking..)

'Traditional' works like 'cp'. All selected files are copied to one target directory.

'Relative' copies files to the target directories maintaining the relative path of the files. This only works if the target directories already exists and will silently fail if not.

Author(s):
Jens Dagerbo aka teatime

Definition at line 27 of file copyto_part.h.


Constructor & Destructor Documentation

CopyToPart::CopyToPart QObject parent,
const char *  name,
const QStringList
 

Definition at line 47 of file copyto_part.cpp.

References contextMenu(), KDevPlugin::core(), and KXMLGUIClient::setInstance().

CopyToPart::~CopyToPart  ) 
 

Definition at line 57 of file copyto_part.cpp.


Member Function Documentation

void CopyToPart::contextMenu QPopupMenu popup,
const Context context
[private, slot]
 

Definition at line 61 of file copyto_part.cpp.

References _fileList, doCopy(), Context::hasType(), and FileContext::urls().

Referenced by CopyToPart().

void CopyToPart::doCopy  )  [private, slot]
 

Definition at line 73 of file copyto_part.cpp.

References _fileList, KIO::NetAccess::exists(), file, CopyToDialogBase::fileList, KURL::fromPathOrURL(), KURL::isValid(), KDevPlugin::project(), relativeProjectPath(), CopyToDialogBase::traditional, KIO::NetAccess::upload(), KURL::url(), and CopyToDialogBase::url_line.

Referenced by contextMenu().

QString CopyToPart::relativeProjectPath QString  path  )  [private]
 

Definition at line 122 of file copyto_part.cpp.

References KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by doCopy().


Member Data Documentation

KURL::List CopyToPart::_fileList [private]
 

Definition at line 43 of file copyto_part.h.

Referenced by contextMenu(), and doCopy().


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 Tue Feb 22 09:38:44 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003