Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
packagemanager.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2024 QuasarApp.
3 * Distributed under the lgplv3 software license, see the accompanying
4 * Everyone is permitted to copy and distribute verbatim copies
5 * of this license document, but changing it is not allowed.
6*/
7
8
9#ifndef PAKCAGEMANAGER_H
10#define PAKCAGEMANAGER_H
11
12#include "package.h"
13
14#include <QMutex>
15#include <QSharedDataPointer>
16
17
18namespace QH {
19
20class PackaData;
21
26{
27public:
30
36 const Package * getPkgFromArhive(const unsigned int &id) const;
37
44 bool contains(const unsigned int& id) const;
45
52 void processed(const Package& pkg, char processResult);
53private:
54
55 QMultiMap<int, unsigned int> _processTime;
56 QHash<unsigned int, const PackaData*> _parseResults;
57
58 mutable QMutex _processMutex;
59};
60
61}
62#endif // PAKCAGEMANAGER_H
The PakcageManager class contains all processed packages. Working like a cache of packages.
The Package struct. This is base structure for transporting data by network between QH nodes....
Definition package.h:23
#define HEARTSHARED_EXPORT
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13