blob: a105c7d628c02e5985d12f3ac3f2025ee7c81314 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
/*
Notification Action constants and utility functions.
-------------------
Copyright : (C) 2005 by Gary Cramblitt <[email protected]>
-------------------
Original author: Gary Cramblitt <[email protected]>
Current Maintainer: 2004 by Gary Cramblitt <[email protected]>
******************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; version 2 of the License. *
* *
***************************************************************************/
#ifndef _NOTIFYACTION_H
#define _NOTIFYACTION_H
#include <tdemacros.h>
class TQString;
class TDE_EXPORT NotifyAction
{
public:
enum NotifyActions
{
SpeakEventName,
SpeakMsg,
DoNotSpeak,
SpeakCustom
};
static int count();
static TQString actionName( const int action );
static int action( const TQString& actionName );
static TQString actionDisplayName( const int action );
static TQString actionDisplayName( const TQString& actionName );
};
// --------------------------------------------------------------------
class TDE_EXPORT NotifyPresent
{
public:
enum NotifyPresentations
{
None,
Dialog,
Passive,
DialogAndPassive,
All
};
static int count();
static TQString presentName( const int present );
static int present( const TQString& presentName );
static TQString presentDisplayName( const int present );
static TQString presentDisplayName( const TQString& presentName );
};
// --------------------------------------------------------------------
class TDE_EXPORT NotifyEvent
{
public:
/**
* Retrieves the displayable name for an event source.
*/
static TQString getEventSrcName(const TQString& eventSrc, TQString& iconName);
/**
* Retrieves the displayable name for an event from an event source.
*/
static TQString getEventName(const TQString& eventSrc, const TQString& event);
};
#endif // _NOTIFYACTION_H
|