Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
Loading...
Searching...
No Matches
packagemanager.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2025 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
25class HEARTSHARED_EXPORT PackageManager
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
const Package * getPkgFromArhive(const unsigned int &id) const
getPkgFromArhive This method return pointer to package from archive.
void processed(const Package &pkg, char processResult)
processed This method add a package to the archive.
bool contains(const unsigned int &id) const
contains This method checks if the package contains in this container by id.
The Package struct. This is base structure for transporting data by network between QH nodes....
Definition package.h:23
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
Definition heart.cpp:13
The PackaData struct - private data of packages.
Definition packadata.h:17