1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/remcongroupnavigationtarget.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,106 @@
1.4 +// Copyright (c) 2008-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 REMCONGROUPNAVIGATIONTARGET_H
1.28 +#define REMCONGROUPNAVIGATIONTARGET_H
1.29 +
1.30 +#include <e32base.h>
1.31 +#include <s32mem.h>
1.32 +#include <remconcoreapi.h>
1.33 +#include <remcon/avrcpspec.h>
1.34 +
1.35 +#include <remcon/remcongroupnavigation.h>
1.36 +#include <remcon/remconinterfacebase.h>
1.37 +#include <remcon/remconinterfaceif.h>
1.38 +
1.39 +class MRemConGroupNavigationTargetObserver;
1.40 +class CRemConInterfaceSelector;
1.41 +
1.42 +/**
1.43 +Client-instantiable type supporting sending Battery Status responses.
1.44 +*/
1.45 +NONSHARABLE_CLASS(CRemConGroupNavigationApiTarget) : public CRemConInterfaceBase,
1.46 + public MRemConInterfaceIf
1.47 + {
1.48 +public:
1.49 + /**
1.50 + Factory function.
1.51 + @see CRemConInterfaceSelector
1.52 + @param aInterfaceSelector The interface selector. The client must have
1.53 + created one of these first.
1.54 + @param aObserver The observer of this interface.
1.55 + @return A new CRemConGroupNavigationApiTarget, owned by the interface selector.
1.56 + */
1.57 + IMPORT_C static CRemConGroupNavigationApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector,
1.58 + MRemConGroupNavigationTargetObserver& aObserver);
1.59 +
1.60 + /** Destructor */
1.61 + IMPORT_C ~CRemConGroupNavigationApiTarget();
1.62 +
1.63 +public:
1.64 + /** Send a 'next group' response.
1.65 + Called by the client after receiving a MRemConGroupNavigationTargetObserver::MrcgntoNextGroup().
1.66 + @param aStatus Used by RemCon to indicate completion of the send request.
1.67 + aStatus may be NULL if no completion indication required.
1.68 + @param aError The response error.
1.69 + */
1.70 + IMPORT_C void NextGroupResponse(TRequestStatus*& aStatus, TInt aError);
1.71 +
1.72 + /** Send a 'previous group' response.
1.73 + Called by the client after receiving a MRemConGroupNavigationTargetObserver::MrcgntoPreviousGroup().
1.74 + @param aStatus Used by RemCon to indicate completion of the send request.
1.75 + aStatus may be NULL if no completion indication required.
1.76 + @param aError The response error.
1.77 + */
1.78 + IMPORT_C void PreviousGroupResponse(TRequestStatus*& aStatus, TInt aError);
1.79 +
1.80 +private:
1.81 + /**
1.82 + Constructor.
1.83 + @param aInterfaceSelector The interface selector.
1.84 + @param aObserver The observer of this interface.
1.85 + */
1.86 + CRemConGroupNavigationApiTarget(CRemConInterfaceSelector& aInterfaceSelector,
1.87 + MRemConGroupNavigationTargetObserver& aObserver);
1.88 +
1.89 + void SendGroupResponse(TGroupNavigationPassthroughOperationIds aId, TRequestStatus*& aStatus, TInt aError);
1.90 +
1.91 + void ConstructL();
1.92 +
1.93 +private: // from CRemConInterfaceBase
1.94 + TAny* GetInterfaceIf(TUid aUid);
1.95 +
1.96 +private: // from MRemConInterfaceIf
1.97 + void MrcibNewMessage(TUint aOperationId, const TDesC8& aData);
1.98 +
1.99 +private: // unowned
1.100 + MRemConGroupNavigationTargetObserver& iObserver;
1.101 +
1.102 +private: // owned
1.103 + CBufFlat* iOutData;
1.104 + TPtr8 iPtr;
1.105 + RBufWriteStream iStream;
1.106 +
1.107 + };
1.108 +
1.109 +#endif // REMCONGROUPNAVIGATIONTARGET_H