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

kget

Public Types | Signals | Public Member Functions | Static Public Member Functions | List of all members
ChecksumSearch Class Reference

#include <checksumsearch.h>

Inheritance diagram for ChecksumSearch:
Inheritance graph
[legend]

Public Types

enum  UrlChangeMode { kg_Append, kg_ReplaceFile, kg_ReplaceEnding }
 

Signals

void data (QString type, QString checksum)
 

Public Member Functions

 ChecksumSearch (const QList< KUrl > &srcs, const QString &fileName, const QStringList &types, QObject *parent=0)
 
 ~ChecksumSearch ()
 

Static Public Member Functions

static KUrl createUrl (const KUrl &src, const QString &change, UrlChangeMode mode)
 
static QStringList urlChangeModes ()
 

Detailed Description

Definition at line 28 of file checksumsearch.h.

Member Enumeration Documentation

enum ChecksumSearch::UrlChangeMode

Used to define in whiche way the url should be changed to try and find Checksums.

Enumerator
kg_Append 
kg_ReplaceFile 

Appends the QString to the Url –> "http://test.com/aFile.zip"; ".md5" "http://test.com/aFile.zip.md5".

kg_ReplaceEnding 

Replaces the file of the Url with QString –> "http://test.com/aFile.zip"; "MD5SUMS" "http://test.com/MD5SUMS".

Only replaces the file ending of the Url with QString –> "http://test.com/aFile.zip"; "-CHECKSUM" "http://test.com/aFile-CHECKSUM"

Definition at line 40 of file checksumsearch.h.

Constructor & Destructor Documentation

ChecksumSearch::ChecksumSearch ( const QList< KUrl > &  srcs,
const QString &  fileName,
const QStringList &  types,
QObject *  parent = 0 
)

Definition at line 32 of file checksumsearch.cpp.

ChecksumSearch::~ChecksumSearch ( )

Definition at line 42 of file checksumsearch.cpp.

Member Function Documentation

KUrl ChecksumSearch::createUrl ( const KUrl &  src,
const QString &  change,
ChecksumSearch::UrlChangeMode  mode 
)
static

Returns a modified url according to the parameters.

Parameters
srcthe url to modify
changethe string containing the change e.g. ".md5"
modethe mode of the change e.g. Append

Definition at line 166 of file checksumsearch.cpp.

void ChecksumSearch::data ( QString  type,
QString  checksum 
)
signal
static QStringList ChecksumSearch::urlChangeModes ( )
inlinestatic

Returns the available mode-names.

The order of the Stringlist is the same as in the enum

Definition at line 50 of file checksumsearch.h.


The documentation for this class was generated from the following files:
  • checksumsearch.h
  • checksumsearch.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kget

Skip menu "kget"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal