Skip to main content ::
::
KDE PIM API Reference
::
Skip to Link Menu
/
API Reference
/
akregator
/
src
akregator/src
akregator
src
kcursorsaver.h
1
// taken from kmail/, moved to Akregator namespace to avoid clashes
2
3
#ifndef kcursorsaver_h
4
#define kcursorsaver_h
5
6
#include <tqcursor.h>
7
#include <tqapplication.h>
8
9
namespace
Akregator {
10
17
class
KCursorSaver
:
public
TQt
18
{
19
public
:
21
KCursorSaver
(TQt::CursorShape shape) {
22
TQApplication::setOverrideCursor( TQCursor(shape) );
23
inited =
true
;
24
}
25
27
KCursorSaver
(
const
KCursorSaver
&rhs ) {
28
*
this
= rhs;
29
}
30
32
~KCursorSaver
() {
33
if
(inited)
34
TQApplication::restoreOverrideCursor();
35
}
36
38
inline
void
restoreCursor
(
void
) {
39
TQApplication::restoreOverrideCursor();
40
inited =
false
;
41
}
42
43
protected
:
44
void
operator=(
const
KCursorSaver
&rhs ) {
45
inited = rhs.inited;
46
rhs.inited =
false
;
47
}
48
49
private
:
50
mutable
bool
inited;
51
};
52
56
namespace
KBusyPtr {
57
inline
KCursorSaver
idle() {
58
return
KCursorSaver
(TQCursor::ArrowCursor);
59
}
60
inline
KCursorSaver
busy() {
61
return
KCursorSaver
(TQCursor::WaitCursor);
62
}
63
}
64
65
}
// namespace Akregator
66
67
#endif
/*kbusyptr_h_*/
akregator/src
Skip menu "akregator/src"
Main Page
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
akregator/src
Skip menu "akregator/src"
akregator
src
librss
certmanager
lib
kaddressbook
kalarm
lib
kandy
karm
kdgantt
kgantt
kitchensync
kmail
knotes
konsolekalendar
kontact
korganizer
libemailfunctions
libkcal
libkholidays
libkmime
libkpgp
libkpimidentities
libtdepim
tdeioslave
imap4
mbox