os/security/authorisation/userpromptservice/examples/integration/tmsgapp/tmsgapp.h
First public contribution.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
30 #include "tmsgclient.h"
32 // Utility interface for classes that require a callback after a given timeout
36 virtual void WakeupL() = 0;
39 // Utility class that invokes a call back after a given timeout
40 class CAlarm : public CTimer
44 inline void ConstructL();
45 void After(MAlarmObserver* aObserver, TTimeIntervalMicroSeconds32 anInterval);
48 MAlarmObserver* iObserver;
52 * Sends a series of test messages to trigger user prompting.
54 class CSendMessages : public CActive, public MAlarmObserver
57 static CSendMessages* NewLC();
67 TInt RunError(TInt aError);
71 static const TInt KDefaultTimeout = 10 * 1000 * 1000;