57 \param parent QObject pointer. |
64 \param parent QObject pointer. |
58 */ |
65 */ |
59 NotesEditor::NotesEditor(AgendaUtil *agendaUtil, QObject *parent) |
66 NotesEditor::NotesEditor(AgendaUtil *agendaUtil, QObject *parent) |
60 :QObject(parent), d_ptr(new NotesEditorPrivate(agendaUtil, this)) |
67 :QObject(parent), d_ptr(new NotesEditorPrivate(agendaUtil, this)) |
61 { |
68 { |
|
69 OstTraceFunctionEntry0( DUP1_NOTESEDITOR_NOTESEDITOR_ENTRY ); |
62 // Nothing yet. |
70 // Nothing yet. |
|
71 OstTraceFunctionExit0( DUP1_NOTESEDITOR_NOTESEDITOR_EXIT ); |
63 } |
72 } |
64 |
73 |
65 /*! |
74 /*! |
66 Destructor. |
75 Destructor. |
67 */ |
76 */ |
68 NotesEditor::~NotesEditor() |
77 NotesEditor::~NotesEditor() |
69 { |
78 { |
|
79 OstTraceFunctionEntry0( DUP2_NOTESEDITOR_NOTESEDITOR_ENTRY ); |
70 if (d_ptr) { |
80 if (d_ptr) { |
71 delete d_ptr; |
81 delete d_ptr; |
72 } |
82 } |
|
83 OstTraceFunctionExit0( DUP2_NOTESEDITOR_NOTESEDITOR_EXIT ); |
73 } |
84 } |
74 |
85 |
75 /*! |
86 /*! |
76 Shows the noteseditor. The argument acts as the description for the note. |
87 Shows the noteseditor. The argument acts as the description for the note. |
77 |
88 |
78 \param string reference to file string/buffer. |
89 \param string reference to file string/buffer. |
79 */ |
90 */ |
80 void NotesEditor::edit(const QString &string) |
91 void NotesEditor::edit(const QString &string) |
81 { |
92 { |
|
93 OstTraceFunctionEntry0( NOTESEDITOR_EDIT_ENTRY ); |
82 d_ptr->edit(string); |
94 d_ptr->edit(string); |
|
95 OstTraceFunctionExit0( NOTESEDITOR_EDIT_EXIT ); |
83 } |
96 } |
84 |
97 |
85 /*! |
98 /*! |
86 Shows the noteseditor by parsing a .vcs which could be of a To-do or a plain |
99 Shows the noteseditor by parsing a .vcs which could be of a To-do or a plain |
87 .txt file which will be edited as a note. |
100 .txt file which will be edited as a note. |
88 |
101 |
89 \param handle reference to QFile handle. |
102 \param handle reference to QFile handle. |
90 */ |
103 */ |
91 void NotesEditor::edit(const QFile &handle) |
104 void NotesEditor::edit(const QFile &handle) |
92 { |
105 { |
|
106 OstTraceFunctionEntry0( DUP1_NOTESEDITOR_EDIT_ENTRY ); |
93 d_ptr->edit(handle); |
107 d_ptr->edit(handle); |
|
108 OstTraceFunctionExit0( DUP1_NOTESEDITOR_EDIT_EXIT ); |
94 } |
109 } |
95 |
110 |
96 /*! |
111 /*! |
97 Shows the noteseditor, by parsing an AgendaEntry. |
112 Shows the noteseditor, by parsing an AgendaEntry. |
98 |
113 |
99 \param entry An object of AgendaEntry. |
114 \param entry An object of AgendaEntry. |
100 */ |
115 */ |
101 void NotesEditor::edit(AgendaEntry entry) |
116 void NotesEditor::edit(AgendaEntry entry) |
102 { |
117 { |
|
118 OstTraceFunctionEntry0( DUP2_NOTESEDITOR_EDIT_ENTRY ); |
103 d_ptr->edit(entry); |
119 d_ptr->edit(entry); |
|
120 OstTraceFunctionExit0( DUP2_NOTESEDITOR_EDIT_EXIT ); |
104 } |
121 } |
105 |
122 |
106 /*! |
123 /*! |
107 Shows the noteseditor, by fetching the note using the entry id provided. |
124 Shows the noteseditor, by fetching the note using the entry id provided. |
108 |
125 |
109 \param id entry id of the note. |
126 \param id entry id of the note. |
110 */ |
127 */ |
111 void NotesEditor::edit(ulong id) |
128 void NotesEditor::edit(ulong id) |
112 { |
129 { |
|
130 OstTraceFunctionEntry0( DUP3_NOTESEDITOR_EDIT_ENTRY ); |
113 d_ptr->edit(id); |
131 d_ptr->edit(id); |
|
132 OstTraceFunctionExit0( DUP3_NOTESEDITOR_EDIT_EXIT ); |
114 } |
133 } |
115 |
134 |
116 /*! |
135 /*! |
117 Creates a new note or to-do based on the create type.It lanuches the |
136 Creates a new note or to-do based on the create type.It lanuches the |
118 respective editors for editing |
137 respective editors for editing |
119 |
138 |
120 \type type of the editor to be shown for creating new note and new to-do |
139 \type type of the editor to be shown for creating new note and new to-do |
121 */ |
140 */ |
122 void NotesEditor::create(NotesEditor::CreateType type) |
141 void NotesEditor::create(NotesEditor::CreateType type) |
123 { |
142 { |
|
143 OstTraceFunctionEntry0( NOTESEDITOR_CREATE_ENTRY ); |
124 d_ptr->create(type); |
144 d_ptr->create(type); |
|
145 OstTraceFunctionExit0( NOTESEDITOR_CREATE_EXIT ); |
125 } |
146 } |
126 |
147 |
127 /*! |
148 /*! |
128 Closes the notes editor |
149 Closes the notes editor |
129 |
150 |
130 \param type Type of the close required. |
151 \param type Type of the close required. |
131 */ |
152 */ |
132 ulong NotesEditor::close(NotesEditor::CloseType type) |
153 ulong NotesEditor::close(NotesEditor::CloseType type) |
133 { |
154 { |
|
155 OstTraceFunctionEntry0( NOTESEDITOR_CLOSE_ENTRY ); |
134 return d_ptr->close(type); |
156 return d_ptr->close(type); |
135 } |
157 } |
136 |
158 |
137 // End of file --Don't remove this. |
159 // End of file --Don't remove this. |