equal
deleted
inserted
replaced
|
1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent - Internal Symbian test code |
|
19 */ |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "../t_forceregstep.h" |
|
23 #include <e32property.h> |
|
24 |
|
25 |
|
26 TInt E32Main() |
|
27 { |
|
28 RProperty forceRegStatus; |
|
29 User::LeaveIfError(forceRegStatus.Attach(KPropertyCategory, KForceRegTestPropertyKey, EOwnerThread)); |
|
30 |
|
31 TInt status; |
|
32 forceRegStatus.Get(status); |
|
33 status |= KForceRegApp2Executed; |
|
34 forceRegStatus.Set(status); |
|
35 |
|
36 TRequestStatus propertyChanged; |
|
37 |
|
38 while(!(status & KStopForceRegApp2)) |
|
39 { |
|
40 propertyChanged=KRequestPending; |
|
41 forceRegStatus.Subscribe(propertyChanged); |
|
42 User::WaitForRequest(propertyChanged); |
|
43 forceRegStatus.Get(status); |
|
44 } |
|
45 |
|
46 forceRegStatus.Close(); |
|
47 |
|
48 return(KErrNone); |
|
49 } |