Classified ads
tclprogram.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013-2016.
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_TCLPROGRAM_H
22 #define CA_TCLPROGRAM_H
23 #include <QString>
24 #include "../util/hash.h" // for class Hash
25 
26 class MController ;
27 
34 class TclProgram {
35 public:
36  TclProgram() ;
37  ~TclProgram() ;
38  QString displayName() const ;
40  quint32 iTimeOfPublish ;
41  const QString& programText() const {
42  return iProgramText ;
43  } ;
44  const QString& programName() const {
45  return iProgramName ;
46  } ;
47  void setProgramText(const QString& aText) ;
48  void setProgramName(const QString& aName) ;
49 private:
50  QString iProgramText ;
51  QString iProgramName ;
52 } ;
53 #endif
Carrier-class for TCL-program and related settings.
Definition: tclprogram.h:34
void setProgramText(const QString &aText)
QString iProgramText
Definition: tclprogram.h:50
Hash is class that carries 160-bit digest.
Definition: hash.h:38
quint32 iTimeOfPublish
Definition: tclprogram.h:40
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:48
QString iProgramName
Definition: tclprogram.h:51
Hash iFingerPrint
Definition: tclprogram.h:39
QString displayName() const
void setProgramName(const QString &aName)
const QString & programName() const
Definition: tclprogram.h:44
const QString & programText() const
Definition: tclprogram.h:41