digiKam
Digikam::DServiceMenu Class Reference

Static Public Member Functions

static bool runFiles (const QString &appCmd, const QList< QUrl > &urls, KService *const service=nullptr)
 
static bool runFiles (KService *const service, const QList< QUrl > &urls)
 
static KService::List servicesForOpenWith (const QList< QUrl > &urls)
 

Member Function Documentation

◆ runFiles() [1/2]

bool Digikam::DServiceMenu::runFiles ( const QString &  appCmd,
const QList< QUrl > &  urls,
KService *const  service = nullptr 
)
static

Linux only: open file urls with the application command.

References Digikam::adjustedEnvironmentForAppImage(), QT_SKIP_EMPTY_PARTS, runFiles(), and Digikam::KeywordSearch::split().

◆ runFiles() [2/2]

bool Digikam::DServiceMenu::runFiles ( KService *const  service,
const QList< QUrl > &  urls 
)
static

Linux only: open file urls with the service.

Referenced by Digikam::EditorWindow::openWith(), and runFiles().

◆ servicesForOpenWith()

KService::List Digikam::DServiceMenu::servicesForOpenWith ( const QList< QUrl > &  urls)
static

Linux only: return list of service available on desktop to open files.

Referenced by Digikam::ContextMenuHelper::addServicesMenu(), and Digikam::EditorWindow::addServicesMenuForUrl().


The documentation for this class was generated from the following files: