IUP ISI/MediaWiki-Silk/coding-style: Difference between revisions

From KDE Community Wiki
No edit summary
No edit summary
Line 1: Line 1:
/*
/*
  *  Copyright 2010 by XXXX XXXX <[email protected]>
  *  Copyright 2010 by XXXX XXXX <[email protected]>
Line 20: Line 19:


<nowiki>#</nowiki>ifndef ATTRIBUTE_H
<nowiki>#</nowiki>ifndef ATTRIBUTE_H
#define ATTRIBUTE_H
<nowiki>#</nowiki>define ATTRIBUTE_H


#include <QtCore/QObject>
<nowiki>#</nowiki>include <QtCore/QObject>


#include <kdemacros.h>
<nowiki>#</nowiki>include <kdemacros.h>


class MediaWiki;
class MediaWiki;

Revision as of 19:20, 25 October 2010

/*

*   Copyright 2010 by XXXX XXXX <[email protected]>
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU Library General Public License as
*   published by the Free Software Foundation; either version 2, or
*   (at your option) any later version.
*
*   This program is distributed in the hope that it will be useful,
*   but WITHOUT ANY WARRANTY; without even the implied warranty of
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*   GNU General Public License for more details
*
*   You should have received a copy of the GNU Library General Public
*   License along with this program; if not, write to the
*   Free Software Foundation, Inc.,
*   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#ifndef ATTRIBUTE_H #define ATTRIBUTE_H

#include <QtCore/QObject>

#include <kdemacros.h>

class MediaWiki; class QNetworkReply;

class KDE_EXPORT Attribute : public QObject {

   Q_OBJECT

public:

   /**
       @brief Create an instance of Attribute and send a request.
       @param media
       @param parent
   */
   explicit Attribute( MediaWiki const & media, /*Put attributes here*/ QObject * parent = 0 );
   /**
       @brief Destroy the AttributePrivate pointer.
   */
   virtual ~Attribute();

signals:

   /**
       @brief Emitted when a request has been completed.
       @param success true if the request was completed successfully.
    */
   void onFinished( bool );

public slots:

   /**
       @brief Aborts the currently running request.
    */
   void abort();

private slots:

   /**
       @brief Reads the xml and build results
       @param reply
    */
   void onFinished( QNetworkReply *reply );

private:

   struct AttributePrivate * const d;

};

  1. endif // LOGIN_H