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
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 SEARCH_DISPLAY_DIALOG_H
22 #define SEARCH_DISPLAY_DIALOG_H
23 
24 #include "../mcontroller.h"
25 #include "../ui_searchDisplay.h"
26 #include "dialogbase.h"
27 
28 class SearchModel ;
29 class Profile ;
30 class QAction ;
31 class QShortcut ;
32 
36 class SearchDisplay : public DialogBase {
37  Q_OBJECT
38 
39 public:
49  SearchDisplay(QWidget *aParent,
50  MController* aController,
51  SearchModel* aSearchModel ,
52  Profile& aSelectedProfile);
55 signals:
57  const QString& aExplanation) ;
58 private slots:
59  void closeButtonClicked() ;
60  void searchButtonClicked() ;
61  void keyEnterClicked() ;
62  void openButtonClicked() ;
63  void resultListDoubleClicked(const QModelIndex& aIndex);
64  void currentItemChanged(const QModelIndex & current, const QModelIndex & previous ) ;
65  void openSelectedContent() ;
66 private:
67  Ui_searchDisplay ui ;
72  QAction* iOpenAction ;
74 };
75 
76 #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:45
SearchDisplay(QWidget *aParent, MController *aController, SearchModel *aSearchModel, Profile &aSelectedProfile)
Ui_searchDisplay ui
Definition: searchdisplay.h:67
QShortcut * iSearchDisplayKeyboardGrabber
Definition: searchdisplay.h:73
Hash is class that carries 160-bit digest.
Definition: hash.h:38
CAErrorSituation
Definition: mcontroller.h:52
void error(MController::CAErrorSituation aError, const QString &aExplanation)
class for search dialog
Definition: searchdisplay.h:36
Hash iNodeOfFocusedResult
Definition: searchdisplay.h:71
ProtocolItemType
Definition: protocol.h:150
QAction * iOpenAction
Definition: searchdisplay.h:72
void openSelectedContent()
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
void currentItemChanged(const QModelIndex &current, const QModelIndex &previous)
void searchButtonClicked()
void keyEnterClicked()
Hash iHashOfFocusedResult
Definition: searchdisplay.h:69
Carrier-class for user-profile data.
Definition: profile.h:37
void resultListDoubleClicked(const QModelIndex &aIndex)
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:32
SearchModel * iSearchModel
Definition: searchdisplay.h:68
ProtocolItemType iTypeOfFocusedResult
Definition: searchdisplay.h:70