mutterkey
KDE-first push-to-talk transcription tool for KDE Plasma
Loading...
Searching...
No Matches
applicationcommands.h File Reference

Runtime command helpers shared by the CLI entrypoint. More...

#include "config.h"
#include <QLoggingCategory>

Go to the source code of this file.

Functions

void configureLogging (const QString &level)
 Configures runtime log filtering for Mutterkey commands.
 
int runDaemon (QGuiApplication &app, const AppConfig &config, const QString &configPath)
 Runs the background daemon mode.
 
int runOnce (QGuiApplication &app, const AppConfig &config, double seconds)
 Runs one-shot recording and transcription mode.
 
int runDiagnose (QGuiApplication &app, const AppConfig &config, double seconds, bool invokeShortcut)
 Runs temporary daemon diagnostics.
 
int runModelImport (const QString &sourcePath, const QString &outputPath, const QString &packageIdOverride)
 Imports a legacy raw Whisper model into a native Mutterkey package.
 
int runModelInspect (const QString &path)
 Inspects a model artifact and prints metadata as JSON.
 

Detailed Description

Runtime command helpers shared by the CLI entrypoint.

Definition in file applicationcommands.h.

Function Documentation

◆ configureLogging()

void configureLogging ( const QString &  level)

Configures runtime log filtering for Mutterkey commands.

Parameters
levelConfigured log level string.

◆ runDaemon()

int runDaemon ( QGuiApplication &  app,
const AppConfig config,
const QString &  configPath 
)

Runs the background daemon mode.

Parameters
appGUI application object.
configResolved runtime config snapshot.
configPathConfig path associated with the current daemon session.
Returns
Process exit code.

◆ runDiagnose()

int runDiagnose ( QGuiApplication &  app,
const AppConfig config,
double  seconds,
bool  invokeShortcut 
)

Runs temporary daemon diagnostics.

Parameters
appGUI application object.
configResolved runtime config snapshot.
secondsDiagnostic capture duration in seconds.
invokeShortcutWhether to trigger a synthetic shortcut invoke.
Returns
Process exit code.

◆ runModelImport()

int runModelImport ( const QString &  sourcePath,
const QString &  outputPath,
const QString &  packageIdOverride 
)

Imports a legacy raw Whisper model into a native Mutterkey package.

Parameters
sourcePathSource raw model file.
outputPathOptional package destination path.
packageIdOverrideOptional package id override.
Returns
Process exit code.

◆ runModelInspect()

int runModelInspect ( const QString &  path)

Inspects a model artifact and prints metadata as JSON.

Parameters
pathPackage directory, manifest path, or raw compatibility artifact.
Returns
Process exit code.

◆ runOnce()

int runOnce ( QGuiApplication &  app,
const AppConfig config,
double  seconds 
)

Runs one-shot recording and transcription mode.

Parameters
appGUI application object.
configResolved runtime config snapshot.
secondsRecording duration in seconds.
Returns
Process exit code.