equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: Silent widget model |
|
15 * |
|
16 */ |
|
17 |
|
18 // User includes |
|
19 #include "silentmodel.h" |
|
20 #include "silentmodel_p.h" |
|
21 #include "silentwidgetconsts.h" |
|
22 |
|
23 /*! |
|
24 \class SilentModel |
|
25 \Silent widget model class |
|
26 |
|
27 This class is used to create silent widget model |
|
28 */ |
|
29 |
|
30 // ======== MEMBER FUNCTIONS ======== |
|
31 |
|
32 /*! |
|
33 Constructor |
|
34 */ |
|
35 SilentModel::SilentModel(QObject *parent/*= 0*/) |
|
36 : QObject(parent) |
|
37 { |
|
38 QT_TRAP_THROWING(dptr = SilentModelPrivate::NewL()); |
|
39 } |
|
40 |
|
41 /*! |
|
42 Destroyer |
|
43 */ |
|
44 SilentModel::~SilentModel() |
|
45 { |
|
46 delete dptr; |
|
47 } |
|
48 |
|
49 /* |
|
50 Get silent status in master volume |
|
51 */ |
|
52 bool SilentModel::silenceMode() const |
|
53 { |
|
54 return dptr->silenceMode(); |
|
55 } |
|
56 |
|
57 /* |
|
58 Set silent status in master volume |
|
59 */ |
|
60 void SilentModel::setSilenceMode(bool isSilence) |
|
61 { |
|
62 return dptr->setSilenceMode(isSilence); |
|
63 } |