equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOGSREADEROBSERVER_H |
|
19 #define LOGSREADEROBSERVER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <QList> |
|
23 |
|
24 // FORWARD DECLARATION |
|
25 class LogsEvent; |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Reader observer interface |
|
31 */ |
|
32 class LogsReaderObserver |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Reader has completed reading. |
|
39 */ |
|
40 virtual void readCompleted(int readCount) = 0; |
|
41 |
|
42 /** |
|
43 * Error occured while reading. |
|
44 * @param err |
|
45 */ |
|
46 virtual void errorOccurred(int err) = 0; |
|
47 |
|
48 /** |
|
49 * Temporary error occured while reading. |
|
50 * It should be possible to continue reading at some point. |
|
51 * @param err |
|
52 */ |
|
53 virtual void temporaryErrorOccurred(int err) = 0; |
|
54 |
|
55 /** |
|
56 * Reader has completed modifying the event. |
|
57 */ |
|
58 virtual void eventModifyingCompleted() = 0; |
|
59 |
|
60 /** |
|
61 * Duplicate reading has completed |
|
62 * @param duplicates, list of read duplicates, onwership is transferred |
|
63 */ |
|
64 virtual void duplicatesReadingCompleted(QList<LogsEvent*> duplicates) = 0; |
|
65 }; |
|
66 |
|
67 #endif // LOGSREADER_H |
|
68 |
|
69 |
|
70 // End of File |
|
71 |
|
72 |
|
73 |
|
74 |