|
1 /* |
|
2 * Copyright (c) 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: Implementation of CSAnimPlugin class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "sanimplugin.h" |
|
20 |
|
21 // ======== MEMBER FUNCTIONS ======== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // Constructor |
|
25 // |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 CSAnimPlugin::CSAnimPlugin() : iClientStatus( 0 ) |
|
29 { |
|
30 } |
|
31 |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // CSAnimPlugin::SetRepeatCount |
|
35 // |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 EXPORT_C void CSAnimPlugin::SetRepeatCount( const TInt aRepeatCount ) |
|
39 { |
|
40 iRepeatCount = aRepeatCount; |
|
41 } |
|
42 |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // CSAnimPlugin::SetClientRequest |
|
46 // |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C void CSAnimPlugin::SetClientRequest( TRequestStatus& aStatus ) |
|
50 { |
|
51 __ASSERT_ALWAYS( !iClientStatus, User::Invariant() ); |
|
52 |
|
53 aStatus = KRequestPending; |
|
54 iClientStatus = &aStatus; |
|
55 } |
|
56 |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // CSAnimPlugin::CompleteClientRequest |
|
60 // |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 EXPORT_C void CSAnimPlugin::CompleteClientRequest( const TInt aStatusCode ) |
|
64 { |
|
65 if ( iClientStatus ) |
|
66 { |
|
67 User::RequestComplete( iClientStatus, aStatusCode ); |
|
68 iClientStatus = NULL; |
|
69 } |
|
70 } |