Torc  0.1
torcnotifier.cpp
Go to the documentation of this file.
1 /* Class TorcNotifier
2 *
3 * Copyright (C) Mark Kendall 2016-18
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 // Torc
21 #include "torclogging.h"
22 #include "torcnotifier.h"
23 
36 TorcNotifier::TorcNotifier(const QVariantMap &Details)
37  : TorcDevice(false, 0, 0, QStringLiteral("Notifier"), Details)
38 {
39 }
40 
42 
44  : nextTorcNotifierFactory(gTorcNotifierFactory)
45 {
46  gTorcNotifierFactory = this;
47 }
48 
50 {
51  return gTorcNotifierFactory;
52 }
53 
55 {
57 }
58 
TorcNotifierFactory * nextTorcNotifierFactory
Definition: torcnotifier.h:39
TorcNotifier(const QVariantMap &Details)
static TorcNotifierFactory * gTorcNotifierFactory
Definition: torcnotifier.h:38
static TorcNotifierFactory * GetTorcNotifierFactory(void)
TorcNotifierFactory * NextFactory(void) const