#pragma once

#include "sqlite_orm/sqlite_orm.h"
#include <QApplication>
#include <QClipboard>
#include <QMimeData>

using sqlite_orm::datetime;
// using sqlite_orm::default_value;
using sqlite_orm::make_column;
using sqlite_orm::make_storage;
using sqlite_orm::make_table;
using sqlite_orm::primary_key;

struct CBRow {
    int         id;
    std::string content;
    std::string time;
};

class ClipboardMonitor : public QObject {
    Q_OBJECT
public:
    ClipboardMonitor(QObject *parent = nullptr);
    ~ClipboardMonitor();

private slots:
    void onClipboardChanged();

private:
    void refreshTableModel();
};
