summaryrefslogtreecommitdiff
path: root/core/pim/todo/todoeditor.h
blob: 1ac7f8ab7a32227360abc85dfa69206cc3b2b7ac (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
#ifndef OPIE_TODO_EDITOR_H
#define OPIE_TODO_EDITOR_H

#include <opie2/opimtodo.h>


class OTaskEditor;
namespace Todo {
    class Editor {
    public:
        Editor();
        ~Editor();

        Opie::OPimTodo newTodo( int currentCatId,
                           QWidget* par );
        Opie::OPimTodo edit( QWidget* par,
                             const Opie::OPimTodo& ev = Opie::OPimTodo() );


        bool accepted()const;
    protected:
        OTaskEditor* self();
    private:
        bool m_accepted: 1;
        OTaskEditor* m_self;
    };
};

#endif