mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-30 11:26:44 -05:00
Pass (using IPC) command line filenames to already running instance
This commit is contained in:
parent
7b9b23b143
commit
165d664524
5 changed files with 136 additions and 58 deletions
|
|
@ -39,14 +39,20 @@ public:
|
|||
bool event(QEvent* event) override;
|
||||
bool isAlreadyRunning() const;
|
||||
|
||||
bool sendFileNamesToRunningInstance(const QStringList& fileNames);
|
||||
|
||||
signals:
|
||||
void openFile(const QString& filename);
|
||||
void anotherInstanceStarted();
|
||||
void applicationActivated();
|
||||
void quitSignalReceived();
|
||||
|
||||
private slots:
|
||||
#if defined(Q_OS_UNIX)
|
||||
void quitBySignal();
|
||||
#endif
|
||||
void processIncomingConnection();
|
||||
void socketReadyRead();
|
||||
|
||||
private:
|
||||
QWidget* m_mainWindow;
|
||||
|
|
@ -63,6 +69,7 @@ private:
|
|||
bool m_alreadyRunning;
|
||||
QLockFile* m_lockFile;
|
||||
QLocalServer m_lockServer;
|
||||
QString m_socketName;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_APPLICATION_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue