summaryrefslogtreecommitdiffstats
path: root/languages/cpp/app_templates/tdescreensaver/tdescreensaver.h
blob: e066852ad2b61338ac71c2458d91005d7e319204 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%{CPP_TEMPLATE}

#ifndef %{APPNAME}_H__
#define %{APPNAME}_H__

#include "tdescreensaver.h"
#include "%{APPNAMELC}ui.h"

class %{APPNAME} : public KScreenSaver
{
    Q_OBJECT
  
public:
    %{APPNAME}( WId drawable );
    virtual ~%{APPNAME}();
private:
    void readSettings();
    void blank();
};

class %{APPNAME}Setup : public %{APPNAME}UI
{
    Q_OBJECT
  
public:
    %{APPNAME}Setup( TQWidget *parent = NULL, const char *name = NULL );

private slots:
    void slotOkPressed();
    void slotCancelPressed();

private:
    void readSettings();
    %{APPNAME} *saver;
};

#endif