~compiz-team/compiz-core/oneiric.uwd_rewrite

« back to all changes in this revision

Viewing changes to src/privatetimer.h

  • Committer: Sam Spilsbury
  • Date: 2011-07-12 17:59:37 UTC
  • mfrom: (2753.9.7)
  • Revision ID: sam.spilsbury@canonical.com-20110712175937-xc6mnmsr9fr6q6lt
Merge in build fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright © 2008 Dennis Kasprzyk
3
 
 *
4
 
 * Permission to use, copy, modify, distribute, and sell this software
5
 
 * and its documentation for any purpose is hereby granted without
6
 
 * fee, provided that the above copyright notice appear in all copies
7
 
 * and that both that copyright notice and this permission notice
8
 
 * appear in supporting documentation, and that the name of
9
 
 * Dennis Kasprzyk not be used in advertising or publicity pertaining to
10
 
 * distribution of the software without specific, written prior permission.
11
 
 * Dennis Kasprzyk makes no representations about the suitability of this
12
 
 * software for any purpose. It is provided "as is" without express or
13
 
 * implied warranty.
14
 
 *
15
 
 * DENNIS KASPRZYK DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
16
 
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
17
 
 * NO EVENT SHALL DENNIS KASPRZYK BE LIABLE FOR ANY SPECIAL, INDIRECT OR
18
 
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
19
 
 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
20
 
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
21
 
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
 
 *
23
 
 * Authors: Dennis Kasprzyk <onestone@compiz-fusion.org>
24
 
 */
25
 
 
26
 
#include <core/timer.h>
27
 
 
28
 
#ifndef _PRIVATETIMER_H
29
 
#define _PRIVATETIMER_H
30
 
 
31
 
class PrivateTimer
32
 
{
33
 
    public:
34
 
 
35
 
        PrivateTimer ();
36
 
        ~PrivateTimer ();
37
 
 
38
 
        bool                     mActive;
39
 
        unsigned int             mMinTime;
40
 
        unsigned int             mMaxTime;
41
 
        int                      mMinLeft;
42
 
        int                      mMaxLeft;
43
 
        CompTimer::CallBack      mCallBack;
44
 
};
45
 
 
46
 
#endif
47
 
 
48