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

Nepomuk-Core

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk-core
  • services
  • filewatch
updaterequest.h
Go to the documentation of this file.
1 /*
2  This file is part of the Nepomuk KDE project.
3  Copyright (C) 2009 Sebastian Trueg <trueg@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) version 3, or any
9  later version accepted by the membership of KDE e.V. (or its
10  successor approved by the membership of KDE e.V.), which shall
11  act as a proxy defined in Section 6 of version 3 of the license.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public
19  License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 #ifndef _NEPOMUK_UPDATE_REQUEST_H_
23 #define _NEPOMUK_UPDATE_REQUEST_H_
24 
25 #include <KUrl>
26 #include <QtCore/QDateTime>
27 
28 namespace Nepomuk2 {
32  class UpdateRequest
33  {
34  public:
35  UpdateRequest( const KUrl& s = KUrl(),
36  const KUrl& t = KUrl() )
37  : m_source( s ),
38  m_target( t ) {
39  m_timestamp = QDateTime::currentDateTime();
40  }
41 
43  bool operator==( const UpdateRequest& other ) const {
44  return m_source.equals( other.m_source ) && m_target.equals( other.m_target );
45  }
46 
47  QDateTime timestamp() const { return m_timestamp; }
48  KUrl source() const { return m_source; }
49  KUrl target() const { return m_target; }
50 
51  private:
52  KUrl m_source;
53  KUrl m_target;
54  QDateTime m_timestamp;
55  };
56 
57  uint qHash( const UpdateRequest& req );
58 }
59 
60 #endif
Nepomuk2::UpdateRequest::target
KUrl target() const
Definition: updaterequest.h:49
Nepomuk2::UpdateRequest::timestamp
QDateTime timestamp() const
Definition: updaterequest.h:47
Nepomuk2::UpdateRequest
One update request with a timestamp.
Definition: updaterequest.h:32
Nepomuk2::UpdateRequest::operator==
bool operator==(const UpdateRequest &other) const
here the timestamp is ignored deliberately
Definition: updaterequest.h:43
Nepomuk2::qHash
uint qHash(const SimpleResource &res)
Definition: simpleresource.cpp:297
Nepomuk2::UpdateRequest::UpdateRequest
UpdateRequest(const KUrl &s=KUrl(), const KUrl &t=KUrl())
Definition: updaterequest.h:35
Nepomuk2::UpdateRequest::source
KUrl source() const
Definition: updaterequest.h:48
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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