|
1 /* |
|
2 * Copyright (c) 2002-2007 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: Declares CJobStateEvents class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CJOBSTATEEVENTS_H |
|
20 #define CJOBSTATEEVENTS_H |
|
21 |
|
22 #include "upconsts.h" |
|
23 |
|
24 #define KUPnPMaxReasonLen 50 |
|
25 typedef TBuf8<KDefaultRealWidth+KMaxName+KDefaultRealWidth+KMaxFileName+KUPnPMaxReasonLen> TUPnPVariable; |
|
26 |
|
27 /* |
|
28 * @class CJobStateEvents |
|
29 * @description This class contains the state variables related to the job that is active at printer. |
|
30 */ |
|
31 NONSHARABLE_CLASS(CJobStateEvents) : public CBase |
|
32 { |
|
33 public: |
|
34 enum TJobStateEvent |
|
35 { |
|
36 ENone = 0, |
|
37 EPrinterState, |
|
38 EPrinterStateReasons, |
|
39 EJobIdList, |
|
40 EJobEndState, |
|
41 EJobMediaSheetsCompleted, |
|
42 EContentCompleteList, |
|
43 EJobAbortState |
|
44 }; |
|
45 |
|
46 public: |
|
47 |
|
48 static CJobStateEvents* NewL(); |
|
49 |
|
50 static CJobStateEvents* NewLC(); |
|
51 |
|
52 static CJobStateEvents* NewL(CJobStateEvents &a); |
|
53 |
|
54 static CJobStateEvents* NewLC(CJobStateEvents &a); |
|
55 |
|
56 static CJobStateEvents* NewL( |
|
57 const TDesC8& aPrinterState, const TDesC8& aPrinterStateReasons, const TDesC8& aJobIdList, |
|
58 const TDesC8& aJobEndState,const TDesC8& aJobMediaSheetsCompleted, |
|
59 const TDesC8& aContentCompleteList, const TDesC8& aJobAbortState); |
|
60 |
|
61 static CJobStateEvents* NewLC( |
|
62 const TDesC8& aPrinterState, const TDesC8& aPrinterStateReasons, const TDesC8& aJobIdList, |
|
63 const TDesC8& aJobEndState,const TDesC8& aJobMediaSheetsCompleted, |
|
64 const TDesC8& aContentCompleteList, const TDesC8& aJobAbortState); |
|
65 |
|
66 void ConstructL( |
|
67 const TDesC8& aPrinterState, const TDesC8& aPrinterStateReasons, const TDesC8& aJobIdList, |
|
68 const TDesC8& aJobEndState,const TDesC8& aJobMediaSheetsCompleted, |
|
69 const TDesC8& aContentCompleteList, const TDesC8& aJobAbortState); |
|
70 |
|
71 void ConstructL(CJobStateEvents &a); |
|
72 |
|
73 ~CJobStateEvents(); |
|
74 |
|
75 CJobStateEvents(const CJobStateEvents &a); |
|
76 |
|
77 void Delete(); |
|
78 |
|
79 void InitL(); |
|
80 |
|
81 TBool ChangedEventL(const TDesC8 &aEvent, TJobStateEvent aEnum); |
|
82 |
|
83 void ContentCompleteL ( const TDesC8 &aEvent, TBool& aChanged ); |
|
84 |
|
85 void JobAbortStateL ( const TDesC8 &aEvent, TBool& aChanged ); |
|
86 |
|
87 TBool operator==(const CJobStateEvents &a); |
|
88 |
|
89 TBool operator!=(const CJobStateEvents &a); |
|
90 |
|
91 protected: |
|
92 |
|
93 CJobStateEvents(); |
|
94 |
|
95 |
|
96 public: |
|
97 HBufC8* iPrinterState; |
|
98 HBufC8* iPrinterStateReasons; |
|
99 HBufC8* iJobIdList; |
|
100 HBufC8* iJobEndState; |
|
101 HBufC8* iJobMediaSheetsCompleted; |
|
102 HBufC8* iContentCompleteList; |
|
103 HBufC8* iJobAbortState; |
|
104 }; |
|
105 |
|
106 #endif // CJOBSTATEEVENTS_H |
|
107 |
|
108 // End of File |