• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KNewStuff

  • KNS3
  • UploadDialog
Classes | Public Slots | Public Member Functions

KNS3::UploadDialog Class Reference

KNewStuff file upload dialog. More...

#include <uploaddialog.h>

Inheritance diagram for KNS3::UploadDialog:
Inheritance graph
[legend]

List of all members.

Classes

class  Private

Public Slots

virtual void accept ()

Public Member Functions

 UploadDialog (QWidget *parent=0)
 UploadDialog (const QString &configFile, QWidget *parent=0)
 ~UploadDialog ()
void selectCategory (const QString &category)
void setChangelog (const QString &changelog)
void setDescription (const QString &description)
void setPreviewImageFile (uint number, const KUrl &file)
void setPrice (double price)
void setPriceEnabled (bool enabled)
void setPriceReason (const QString &reason)
void setUploadFile (const KUrl &payloadFile)
void setUploadName (const QString &name)
void setVersion (const QString &version)

Detailed Description

KNewStuff file upload dialog.

Using this dialog, data can easily be uploaded to the Hotstuff servers.

Maintainer:
Jeremy Whiting (jpwhiting@kde.org)
Since:
4.4

Definition at line 48 of file knewstuff3/uploaddialog.h.


Constructor & Destructor Documentation

UploadDialog::UploadDialog ( QWidget *  parent = 0) [explicit]

Create a new upload dialog.

Parameters:
parentthe parent window

Definition at line 340 of file knewstuff3/uploaddialog.cpp.

UploadDialog::UploadDialog ( const QString &  configFile,
QWidget *  parent = 0 
) [explicit]

Create a new upload dialog.

Parameters:
parentthe parent window

Definition at line 348 of file knewstuff3/uploaddialog.cpp.

UploadDialog::~UploadDialog ( )

Destructor.

Definition at line 354 of file knewstuff3/uploaddialog.cpp.


Member Function Documentation

void UploadDialog::accept ( ) [virtual, slot]

Definition at line 539 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::selectCategory ( const QString &  category)

Set the suggested category for the upload.

The .knsrc file may contain multiple upload categories, this sets which one is pre-selected. It does not add any new category to the list of available categories.

Parameters:
categorythe suggested category for the upload

Definition at line 454 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setChangelog ( const QString &  changelog)

Set the suggested changelog displayed in the upload dialog.

The user can still change this.

Parameters:
versionversion

Definition at line 459 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setDescription ( const QString &  description)

Set the suggested description displayed in the upload dialog.

The user can still change this.

Parameters:
description

Definition at line 464 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPreviewImageFile ( uint  number,
const KUrl &  file 
)

Set one of the threee preview images displayed in the upload dialog.

The user can still change this.

Parameters:
numberThe number of the preview image to set, either 1, 2, or 3.
fileA URL to the file to be used as preview image
Since:
4.6

Definition at line 491 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPrice ( double  price)

Set the suggested price displayed in the upload dialog.

The user can still change this.

Parameters:
versionversion

Definition at line 475 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPriceEnabled ( bool  enabled)

Enable the UI to let the user to set a price for the uploaded item.

Parameters:
enabledenable the price option - it is enabled by default
Since:
4.5

Definition at line 469 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setPriceReason ( const QString &  reason)

Set the suggested rationale why this item costs something to download.

The user can still change this.

Parameters:
versionversion

Definition at line 481 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setUploadFile ( const KUrl &  payloadFile)

Set the file to be uploaded.

This has to be set for the dialog to work, before displaying the dialog.

Parameters:
payloadFilethe payload data file

Definition at line 436 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setUploadName ( const QString &  name)

Set the suggested title for the upload.

The application can suggest a title which can then be edited by the user before uploading. The name field will be left empty if no title was set.

Parameters:
namethe suggested name for the upload

Definition at line 449 of file knewstuff3/uploaddialog.cpp.

void UploadDialog::setVersion ( const QString &  version)

Set the suggested version displayed in the upload dialog.

The user can still change this.

Parameters:
version

Definition at line 486 of file knewstuff3/uploaddialog.cpp.


The documentation for this class was generated from the following files:
  • knewstuff3/uploaddialog.h
  • knewstuff3/uploaddialog.cpp

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal