|
1 /* |
|
2 * Copyright (c) 2004 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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __TTCPROFILERECEIVED_H__ |
|
19 #define __TTCPROFILERECEIVED_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32std.h> |
|
23 |
|
24 // ENUMERATIONS |
|
25 enum TTcProfileEvent |
|
26 { |
|
27 ETcUnknown, |
|
28 ETcProfileCreated, |
|
29 ETcProfileUpdated, |
|
30 ETcProfileRegistrationStatusChanged, |
|
31 ETcProfileDestroyed, |
|
32 ETcProfileRegistryErrorOccurred |
|
33 }; |
|
34 |
|
35 enum TTcProfileRegistrationStatus |
|
36 { |
|
37 ETcStatusUnknown, |
|
38 ETcStatusUnregistered, |
|
39 ETcStatusRegistered |
|
40 }; |
|
41 |
|
42 // CLASS DEFINITION |
|
43 /** |
|
44 * TTcProfileReceived implements a container class for profile notification messages. |
|
45 */ |
|
46 class TTcProfileReceived |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /// Default constructor |
|
51 TTcProfileReceived(); |
|
52 |
|
53 /// Destructor |
|
54 ~TTcProfileReceived(); |
|
55 |
|
56 public: // Data |
|
57 |
|
58 /// Profile id in a profile registry |
|
59 TUint32 iProfileId; |
|
60 |
|
61 /// Profile agent event |
|
62 TTcProfileEvent iEvent; |
|
63 |
|
64 /// Profile registration status |
|
65 TTcProfileRegistrationStatus iRegStatus; |
|
66 |
|
67 /// System-wide or Profile specific error code |
|
68 TInt iError; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // __TTCPROFILERECEIVED_H__ |