Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-04-16 22:02:25 +0300
committerRobert Adam <dev@robert-adam.de>2021-04-16 22:05:52 +0300
commit923045ac6029bc7433c60ce2fad5a35e025beedd (patch)
treeabf6a4001f7b795242e49b619fc3ffb6c0623633 /src/ProcessResolver.h
parentd4a5fc1047837ce2018a6381e0e74a51f65b2a8f (diff)
FORMAT: Run clang-format 10 on all source files
Diffstat (limited to 'src/ProcessResolver.h')
-rw-r--r--src/ProcessResolver.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/src/ProcessResolver.h b/src/ProcessResolver.h
index 59ada3a1c..bdee041d9 100644
--- a/src/ProcessResolver.h
+++ b/src/ProcessResolver.h
@@ -6,35 +6,37 @@
#ifndef MUMBLE_PROCESS_RESOLVER_H_
#define MUMBLE_PROCESS_RESOLVER_H_
-#include <stdint.h>
#include <QtCore/QVector>
+#include <stdint.h>
-/// This ProcessResolver can be used to get a QVector of running process names and associated PIDs on multiple platforms.
-/// This object is by no means thread-safe!
+/// This ProcessResolver can be used to get a QVector of running process names and associated PIDs on multiple
+/// platforms. This object is by no means thread-safe!
class ProcessResolver {
- protected:
- /// The vector for the pointers to the process names
- QVector<const char*> m_processNames;
- /// The vector for the process PIDs
- QVector<uint64_t> m_processPIDs;
+protected:
+ /// The vector for the pointers to the process names
+ QVector< const char * > m_processNames;
+ /// The vector for the process PIDs
+ QVector< uint64_t > m_processPIDs;
+
+ /// Deletes all names currently stored in processNames and clears processNames and processPIDs
+ void freeAndClearData();
+ /// The OS specific implementation of filling in details about running process names and PIDs
+ void doResolve();
- /// Deletes all names currently stored in processNames and clears processNames and processPIDs
- void freeAndClearData();
- /// The OS specific implementation of filling in details about running process names and PIDs
- void doResolve();
- public:
- /// @param resolveImmediately Whether the constructor should directly invoke ProcesResolver::resolve()
- ProcessResolver(bool resolveImmediately = true);
- virtual ~ProcessResolver();
+public:
+ /// @param resolveImmediately Whether the constructor should directly invoke ProcesResolver::resolve()
+ ProcessResolver(bool resolveImmediately = true);
+ virtual ~ProcessResolver();
- /// Resolves the namaes and PIDs of the running processes
- void resolve();
- /// Gets a reference to the stored process names
- const QVector<const char*>& getProcessNames() const;
- /// Gets a reference to the stored process PIDs (corresponding to the names returned by ProcessResolver::getProcessNames())
- const QVector<uint64_t>& getProcessPIDs() const;
- /// @returns The amount of processes that have been resolved by this object
- size_t amountOfProcesses() const;
+ /// Resolves the namaes and PIDs of the running processes
+ void resolve();
+ /// Gets a reference to the stored process names
+ const QVector< const char * > &getProcessNames() const;
+ /// Gets a reference to the stored process PIDs (corresponding to the names returned by
+ /// ProcessResolver::getProcessNames())
+ const QVector< uint64_t > &getProcessPIDs() const;
+ /// @returns The amount of processes that have been resolved by this object
+ size_t amountOfProcesses() const;
};
#endif // MUMBLE_PROCESS_RESOLVER_H_