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

kget

  • sources
  • kde-4.12
  • kdenetwork
  • kget
  • core
mostlocalurl.h
Go to the documentation of this file.
1 /***************************************************************************
2 * Copyright (C) 2011 Matthias Fuchs <mat69@gmx.net> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, write to the *
16 * Free Software Foundation, Inc., *
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
18 ***************************************************************************/
19 
20 #ifndef KGET_MOSTLOCALURL_H
21 #define KGET_MOSTLOCALURL_H
22 
23 #include "kget_export.h"
24 #include <KIO/Job>
25 #include <KUrl>
26 
38 class MostLocalUrlJob;
39 
43 KGET_EXPORT KUrl mostLocalUrl(const KUrl &url);
44 
48 KGET_EXPORT MostLocalUrlJob *mostLocalUrlJob(const KUrl &url);
49 
54 class KGET_EXPORT MostLocalUrlJob : public KIO::Job
55 {
56  Q_OBJECT
57  public:
58  MostLocalUrlJob(const KUrl &url);
59 
60  virtual void start();
61  KUrl url();
62 
66  KUrl mostLocalUrl() const;
67 
68  protected:
69  virtual void slotResult(KJob *job);
70 
71  private:
72  KUrl m_url;
73  KUrl m_mostLocalUrl;
74 };
75 
76 #endif
mostLocalUrlJob
KGET_EXPORT MostLocalUrlJob * mostLocalUrlJob(const KUrl &url)
Asynchronous.
Definition: mostlocalurl.cpp:41
kget_export.h
mostLocalUrl
KGET_EXPORT KUrl mostLocalUrl(const KUrl &url)
Synchronous.
Definition: mostlocalurl.cpp:27
MostLocalUrlJob
Job for asynchronously getting the most local url, do not use directly, but use mostLocalUrlJob inste...
Definition: mostlocalurl.h:54
MostLocalUrlJob::url
KUrl url()
Definition: mostlocalurl.cpp:52
KGET_EXPORT
#define KGET_EXPORT
Definition: kget_export.h:24
KJob
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:17 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