add ignore pattern for git
[web/konrad/chester.git] / tests / dptrtest.h
1 #include <DPtrBase>
2
3 #include <QString>
4
5 class ClassWithDptr
6 {
7         DECLARE_DPTR(d)
8         public:
9                 QString toString()const;
10                 int num()const;
11                 void setNum(int);
12 };
13
14 class ClassWithSDptr
15 {
16         DECLARE_SHARED_DPTR(d)
17         public:
18                 QString toString()const;
19                 int num()const;
20                 void setNum(int);
21                 ClassWithSDptr clone()const;
22 };
23
24 class ClassWithNDptr
25 {
26         DECLARE_NONCOPY_DPTR(d)
27         public:
28                 QString toString()const;
29 };
30
31
32 #include <QObject>
33
34 class DPtrTest:public QObject
35 {
36         Q_OBJECT
37         private slots:
38                 void simpleDP();
39                 void sharedDP();
40                 void noncopyDP();
41 };