1.1 --- a/epoc32/include/remconstatusapicontroller.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,92 +0,0 @@
1.4 -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -
1.20 -
1.21 -/**
1.22 - @file
1.23 - @publishedAll
1.24 - @released
1.25 -*/
1.26 -
1.27 -#ifndef REMCONSTATUSAPICONTROLLER_H
1.28 -#define REMCONSTATUSAPICONTROLLER_H
1.29 -
1.30 -#include <e32base.h>
1.31 -#include <remcon/remconinterfacebase.h>
1.32 -#include <remcon/remconinterfaceif.h>
1.33 -#include <remconstatusapi.h>
1.34 -
1.35 -_LIT(KStatusApiPanicName, "Status Api Panic");
1.36 -
1.37 -class MRemConStatusApiControllerObserver;
1.38 -class CRemConInterfaceSelector;
1.39 -
1.40 -/**
1.41 -A controller which sends Status API commands.
1.42 -@publishedAll
1.43 -@released
1.44 -*/
1.45 -NONSHARABLE_CLASS(CRemConStatusApiController) : public CRemConInterfaceBase,
1.46 - public MRemConInterfaceIf
1.47 - {
1.48 -private:
1.49 - enum TStatusApiPanic
1.50 - {
1.51 - EStatusApiCommandDataSectionTooLong,
1.52 - };
1.53 -
1.54 -public:
1.55 - IMPORT_C static CRemConStatusApiController* NewL(CRemConInterfaceSelector& aInterfaceSelector,
1.56 - MRemConStatusApiControllerObserver& aObserver);
1.57 - IMPORT_C ~CRemConStatusApiController();
1.58 -
1.59 - // Commands
1.60 - IMPORT_C void UnitInfo(TRequestStatus& aStatus, TUint& aNumRemotes);
1.61 - IMPORT_C void SubunitInfo(TRequestStatus& aStatus, TUint& aNumRemotes);
1.62 -
1.63 -private:
1.64 - CRemConStatusApiController(CRemConInterfaceSelector& aInterfaceSelector,
1.65 - MRemConStatusApiControllerObserver& aObserver);
1.66 -
1.67 - // from CRemConInterfaceBase
1.68 - void MrcibNewMessage(TUint aOperationId, const TDesC8& aData);
1.69 - TAny* GetInterfaceIf(TUid aUid);
1.70 -
1.71 - // Utility functions
1.72 - void SetUnitInfoResponseData(const TDesC8& aCommandData,
1.73 - TInt& aVendorId,
1.74 - TInt& aUnit,
1.75 - TInt& aUnitType,
1.76 - TInt& aExtendedUnitType);
1.77 -
1.78 - void SetSubunitInfoResponseData(const TDesC8& aCommandData,
1.79 - TInt& aPage,
1.80 - TInt& aExtension,
1.81 - TPtrC8& aPageData);
1.82 -
1.83 - void ReadCommandDataToInt(const TDesC8& aCommandData,
1.84 - TInt aOffset,
1.85 - TInt aLength,
1.86 - TInt& aValue);
1.87 -
1.88 - static void Panic(TStatusApiPanic aPanic);
1.89 -
1.90 -private:
1.91 - MRemConStatusApiControllerObserver& iObserver;
1.92 - TBuf8<KRemConStatusApiMaxOperationSpecificDataSize> iOutData;
1.93 - };
1.94 -
1.95 -#endif // REMCONSTATUSAPICONTROLLER_H