64
|
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 |
#include <stdio.h>
|
|
19 |
#include <e32def.h>
|
|
20 |
|
|
21 |
#include "bganimhost.h"
|
|
22 |
|
|
23 |
int main(int /*argc*/, char** /*argv*/)
|
|
24 |
{
|
|
25 |
__UHEAP_MARK;
|
|
26 |
TBool fail = EFalse;
|
|
27 |
CBgAnimHost* host = new CBgAnimHost();
|
|
28 |
if (host)
|
|
29 |
{
|
|
30 |
TRAPD(err, host->ConstructL());
|
|
31 |
if (!err)
|
|
32 |
{
|
|
33 |
TRAP_IGNORE(host->ExecuteL());
|
|
34 |
}
|
|
35 |
else
|
|
36 |
{
|
|
37 |
fail = ETrue;
|
|
38 |
}
|
|
39 |
delete host;
|
|
40 |
}
|
|
41 |
else
|
|
42 |
{
|
|
43 |
fail = ETrue;
|
|
44 |
}
|
|
45 |
|
|
46 |
if (fail)
|
|
47 |
{
|
|
48 |
// failed to construct the animation properly
|
|
49 |
// restore skin state
|
|
50 |
// TODO: implement actual restore on failure
|
|
51 |
}
|
|
52 |
|
|
53 |
__UHEAP_MARKEND;
|
|
54 |
return 0;
|
|
55 |
}
|
|
56 |
|