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 "cxutils.h" |
|
19 #include "cxuiapplication.h" |
|
20 #include "cxesettings.h" |
|
21 #include "cxuiapplicationframeworkmonitor.h" |
|
22 #include "cxuiapplicationframeworkmonitorprivate.h" |
|
23 |
|
24 |
|
25 /*! |
|
26 * Constructor |
|
27 */ |
|
28 CxuiApplicationFrameworkMonitor::CxuiApplicationFrameworkMonitor(CxuiApplication &application, CxeSettings &settings) |
|
29 { |
|
30 CX_DEBUG_ENTER_FUNCTION(); |
|
31 p = new CxuiApplicationFrameworkMonitorPrivate(this, application, settings); |
|
32 CX_DEBUG_EXIT_FUNCTION(); |
|
33 } |
|
34 |
|
35 /*! |
|
36 * Destructor |
|
37 */ |
|
38 CxuiApplicationFrameworkMonitor::~CxuiApplicationFrameworkMonitor() |
|
39 { |
|
40 CX_DEBUG_ENTER_FUNCTION(); |
|
41 delete p; |
|
42 CX_DEBUG_EXIT_FUNCTION(); |
|
43 } |
|
44 |
|
45 /*! |
|
46 * Current foreground owning state of this application. |
|
47 * @return Foreground owning state. |
|
48 */ |
|
49 CxuiApplicationFrameworkMonitor::ForegroundState CxuiApplicationFrameworkMonitor::foregroundState() const |
|
50 { |
|
51 return p->foregroundState(); |
|
52 } |
|
53 |
|
54 /*! |
|
55 * Is USB connected in mass memory mode? |
|
56 * @return True if USB mass memory mode is active and connected, false otherwise. |
|
57 */ |
|
58 bool CxuiApplicationFrameworkMonitor::isUsbMassMemoryModeActive() const |
|
59 { |
|
60 return p->isUsbMassMemoryModeActive(); |
|
61 } |
|
62 |
|
63 // end of file |
|