refactor: replace plugin system with native pacman manager
Remove the dynamic plugin loader (pacman/apt/pkg/universal) and drive the UI directly through PacmanManager. Rename sources and headers to kebab-case to match the project's file naming convention. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
1 parent
4a773c63ce
commit
5054f04c54
23 files changed
+276
-1735
No files matched your search
@@ -0,0 +1,35 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <ctime>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
|
||||
struct HistoryEntry {
|
||||
std::string timestamp;
|
||||
std::string action; // "install", "remove", "update"
|
||||
std::string package;
|
||||
std::string plugin;
|
||||
bool success;
|
||||
};
|
||||
|
||||
class HistoryManager {
|
||||
public:
|
||||
HistoryManager(const std::string& historyFile = "~/.local/share/PacManager/history.csv");
|
||||
~HistoryManager();
|
||||
|
||||
void record(const HistoryEntry& entry);
|
||||
const std::vector<HistoryEntry>& getHistory() const;
|
||||
void clear();
|
||||
void save();
|
||||
void load();
|
||||
|
||||
private:
|
||||
std::string m_historyFile;
|
||||
std::vector<HistoryEntry> m_history;
|
||||
|
||||
std::string expandPath(const std::string& path);
|
||||
std::string getCurrentTimestamp();
|
||||
};
|
||||
Reference in new issue
Block a user