ktexteditor_wakatime v1.5.1
Kate plugin to interface with WakaTime.
Loading...
Searching...
No Matches
Public Member Functions
WakaTimeConfig Class Reference

#include <wakatimeconfig.h>

Inherits QObject.

Public Member Functions

QString apiKey () const
 
void setApiKey (const QString &key)
 
QString apiUrl () const
 
void setApiUrl (const QString &url)
 
bool hideFilenames () const
 
void setHideFilenames (bool hide)
 
void save () const
 
void configureDialog (QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
 
void showDialog ()
 

Detailed Description

Basic wrapper around QSettings to use WakaTime settings. Note that the save() method must be called to persist changes.

Definition at line 24 of file wakatimeconfig.h.

Member Function Documentation

◆ apiKey()

QString apiKey ( ) const
inline

Get the API key from the configuration.

Returns
The API key.

Definition at line 45 of file wakatimeconfig.h.

◆ apiUrl()

QString apiUrl ( ) const
inline

Get the API URL from the configuration.

Returns
The API URL.

Definition at line 61 of file wakatimeconfig.h.

◆ configureDialog()

void configureDialog ( QWidget *  parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags() 
)

Configure the dialog. Should be called before showDialog().

Parameters
parentParent widget.
flagsWindow flags.

Definition at line 6 of file wakatimeconfig.cpp.

+ Here is the caller graph for this function:

◆ hideFilenames()

bool hideFilenames ( ) const
inline

Check if filenames should be hidden.

Returns
true if filenames should be hidden, false otherwise.

Definition at line 78 of file wakatimeconfig.h.

◆ save()

void save ( ) const
inline

Save the configuration settings to disk.

Definition at line 90 of file wakatimeconfig.h.

+ Here is the caller graph for this function:

◆ setApiKey()

void setApiKey ( const QString &  key)
inline

Set the API key.

Parameters
keyThe API key to set.

Definition at line 53 of file wakatimeconfig.h.

+ Here is the caller graph for this function:

◆ setApiUrl()

void setApiUrl ( const QString &  url)
inline

Set the API URL.

Parameters
urlThe API URL to set.

Definition at line 70 of file wakatimeconfig.h.

+ Here is the caller graph for this function:

◆ setHideFilenames()

void setHideFilenames ( bool  hide)
inline

Set whether filenames should be hidden.

Parameters
hideFlag.

Definition at line 86 of file wakatimeconfig.h.

+ Here is the caller graph for this function:

◆ showDialog()

void showDialog ( )

Show configuration dialog.

Definition at line 25 of file wakatimeconfig.cpp.

+ Here is the call graph for this function:

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