equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // MCommEngineObserve & MCommReadLineNotifier |
|
15 // |
|
16 |
|
17 #ifndef __MCOMMOBSERVER_H__ |
|
18 #define __MCOMMOBSERVER_H__ |
|
19 |
|
20 //symtem include |
|
21 |
|
22 //user include |
|
23 #include "ltsycommondefine.h" |
|
24 |
|
25 /** |
|
26 * Define the engine's observer |
|
27 * |
|
28 */ |
|
29 class MCommEngineObserver |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Notify the observer if any event happens |
|
34 * |
|
35 */ |
|
36 virtual void ReadOrWriteComplete(TAtEventSource aEvent, TInt aStatus) = 0; |
|
37 }; |
|
38 |
|
39 /** |
|
40 * Define the notifer of one line string which has been found |
|
41 * |
|
42 */ |
|
43 class MCommReadLineNotifier |
|
44 { |
|
45 public: |
|
46 /** |
|
47 * Notify one line of string was found |
|
48 */ |
|
49 virtual TBool NotifyOneLineFoundL(TInt aStatus, const TDesC8& aLineBuf)=0; |
|
50 }; |
|
51 |
|
52 #endif |