blob: fe928d7f6444ea271bd46cd137363e07c159ba2a (
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
|
/***************************************************************************
invitation.h
-------------------
begin : Sat Mar 30 2002
copyright : (C) 2002 by Tim Jansen
email : tim@tjansen.de
***************************************************************************/
/***************************************************************************
* *
* 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; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef INVITATION_H
#define INVITATION_H
#include <kapplication.h>
#include <klistview.h>
#include <kconfig.h>
#include <tqobject.h>
#include <tqstring.h>
#include <tqdatetime.h>
const int INVITATION_DURATION = 60*60;
TQString cryptStr(const TQString &aStr);
class Invitation {
public:
Invitation();
~Invitation();
Invitation(KConfig* config, int num);
Invitation(const Invitation &x);
Invitation &operator= (const Invitation&x);
TQString password() const;
TQDateTime expirationTime() const;
TQDateTime creationTime() const;
bool isValid() const;
void setViewItem(KListViewItem*);
KListViewItem* getViewItem() const;
void save(KConfig *config, int num) const;
private:
TQString m_password;
TQDateTime m_creationTime;
TQDateTime m_expirationTime;
KListViewItem *m_viewItem;
};
#endif
|