Classified ads
searchdisplay.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 modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (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
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Classified Ads. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef SEARCH_DISPLAY_DIALOG_H
21 #define SEARCH_DISPLAY_DIALOG_H
22 
23 #include "../mcontroller.h"
24 #include "../ui_searchDisplay.h"
25 #include "dialogbase.h"
26 
27 class SearchModel ;
28 class Profile ;
29 class QAction ;
30 
34 class SearchDisplay : public DialogBase
35 {
36  Q_OBJECT
37 
38 public:
48  SearchDisplay(QWidget *aParent,
49  MController* aController,
50  SearchModel* aSearchModel ,
51  const Profile& aSelectedProfile);
54 signals:
56  const QString& aExplanation) ;
57 private slots:
58  void closeButtonClicked() ;
59  void searchButtonClicked() ;
60  void openButtonClicked() ;
61  void resultListDoubleClicked(const QModelIndex& aIndex);
62  void currentItemChanged(const QModelIndex & current, const QModelIndex & previous ) ;
63  void openSelectedContent() ;
64 private:
65  Ui_searchDisplay ui ;
70  QAction* iOpenAction ;
71 };
72 
73 #endif
void openButtonClicked()
void closeButtonClicked()
Model-class for performing text-based searches on objects in db This datamodel part is dual-use ; it ...
Definition: searchmodel.h:44
Ui_searchDisplay ui
Definition: searchdisplay.h:65
Hash is class that carries 160-bit digest.
Definition: hash.h:37
CAErrorSituation
Definition: mcontroller.h:48
void error(MController::CAErrorSituation aError, const QString &aExplanation)
class for search dialog
Definition: searchdisplay.h:34
Hash iNodeOfFocusedResult
Definition: searchdisplay.h:69
ProtocolItemType
Definition: protocol.h:124
QAction * iOpenAction
Definition: searchdisplay.h:70
void openSelectedContent()
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
void currentItemChanged(const QModelIndex &current, const QModelIndex &previous)
void searchButtonClicked()
Hash iHashOfFocusedResult
Definition: searchdisplay.h:67
Carrier-class for user-profile data.
Definition: profile.h:36
void resultListDoubleClicked(const QModelIndex &aIndex)
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:31
SearchDisplay(QWidget *aParent, MController *aController, SearchModel *aSearchModel, const Profile &aSelectedProfile)
SearchModel * iSearchModel
Definition: searchdisplay.h:66
ProtocolItemType iTypeOfFocusedResult
Definition: searchdisplay.h:68