Classified ads
metadataQuery.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti J√§rvinen 2013.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with Classified Ads; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 #ifndef CA_METADATA_DIALOG_H
22 #define CA_METADATA_DIALOG_H
23 
24 #include <QDialog>
25 #include "../mcontroller.h"
26 #include "../ui_metadataQuery.h"
27 
31 class MetadataQueryDialog : public QDialog {
32  Q_OBJECT
33 
34 public:
39  typedef struct MetadataResultSetStruct {
40  QString iFileName;
41  QString iDescription;
42  QString iMimeType;
43  QString iOwner;
44  QString iLicense;
53  MetadataQueryDialog(QWidget *aParent,
54  MController& aController,
55  MetadataResultSet& aResultsSet );
58 public slots:
59  void okButtonClicked() ;
60 
61 signals:
63  const QString& aExplanation) ;
64 private: // methods
65  QString findMimeTypeForFile(const QString& aFileName) ;
66 private:
67  Ui_metadataQuery ui ;
70 };
71 
72 #endif
void error(MController::CAErrorSituation aError, const QString &aExplanation)
MController & iController
Definition: metadataQuery.h:68
QString iLicense
Definition: metadataQuery.h:44
CAErrorSituation
Definition: mcontroller.h:52
Ui_metadataQuery ui
Definition: metadataQuery.h:67
struct MetadataQueryDialog::MetadataResultSetStruct MetadataResultSet
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
QString findMimeTypeForFile(const QString &aFileName)
Definition: metadataQuery.h:39
QString iDescription
Definition: metadataQuery.h:41
QString iMimeType
Definition: metadataQuery.h:42
MetadataQueryDialog(QWidget *aParent, MController &aController, MetadataResultSet &aResultsSet)
QString iOwner
Definition: metadataQuery.h:43
QString iFileName
Definition: metadataQuery.h:40
MetadataResultSet & iResultsSet
Definition: metadataQuery.h:69
class for querying metadata of file about to get published
Definition: metadataQuery.h:31