This repository was archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRepoManLoggerModule.hpp
More file actions
55 lines (45 loc) · 1.43 KB
/
RepoManLoggerModule.hpp
File metadata and controls
55 lines (45 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* MacGitver
* Copyright (C) 2012-2013 The MacGitver-Developers <dev@macgitver.org>
*
* (C) Sascha Cunz <sascha@macgitver.org>
* (C) Cunz RaD Ltd.
*
* This program is free software; you can redistribute it and/or modify it under the terms of the
* GNU General Public License (Version 2) as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with this program; if
* not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef MGV_MOD_REPO_MAN_LOGGER_MODULE_HPP
#define MGV_MOD_REPO_MAN_LOGGER_MODULE_HPP
#include "libMacGitverCore/MacGitver/Module.h"
#include "libMacGitverCore/Log/LogTemplate.hpp"
#include "libMacGitverCore/Log/LogChannel.hpp"
class Listener;
class RepoManLoggerModule : public Module
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.macgitver.Module/0.1" FILE "Module.json")
Q_INTERFACES(Module)
public:
RepoManLoggerModule();
~RepoManLoggerModule();
public:
void initialize();
void deinitialize();
private:
void setupTemplates();
void setupChannel();
void setupListener();
private:
Log::Template defTemplate;
Log::Channel repoManChannel;
Listener* listener;
};
#endif