telephonyprotocols/umtsgprsscpr/inc/RSpudManInterface.h
author hgs
Mon, 28 Jun 2010 17:02:18 +0100
changeset 45 28dbf5a297f4
parent 44 8b72faa1200f
permissions -rw-r--r--
201024_05
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     2
// All rights reserved.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     7
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     8
// Initial Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    10
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    11
// Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    12
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    13
// Description:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    14
// The MSpudManInterface handle class definition.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    15
// 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    16
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    17
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    18
/**
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    19
 @file
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    20
 @internalComponent
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    21
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    22
 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    23
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    24
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    25
#ifndef RSPUDMANINTERFACE_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    26
#define RSPUDMANINTERFACE_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    27
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    28
#include <networking/mspudmaninterface.h>
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    29
#include <comms-infras/commsdebugutility.h>
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    30
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    31
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    32
/**
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    33
Client side implementation of MSpudManInterface. 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    34
This is a very simplistic implementation that just holds a refernce to
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    35
the server side and forwards all the calls to it. This implementation
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    36
can be changed in the future to facilitate for IPC.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    37
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    38
class RSpudManInterface : public MSpudManInterface
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    39
{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    40
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    41
   RSpudManInterface();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    42
   void Init(MSpudManInterface* aSpudManImpl);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    43
   void Close ();
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    44
   virtual void Input(TContextId aContextId, TInt aEvent, TInt aParam);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    45
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    46
   virtual void SetContextTerminationErrorAndStop(TContextId aContextId, TInt aErrorCode);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    47
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    48
   inline ~RSpudManInterface ()
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    49
      {
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    50
   	__FLOG_CLOSE;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    51
      }
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    52
   
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    53
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    54
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    55
   MSpudManInterface* iSpudManImpl;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    56
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    57
public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    58
	__FLOG_DECLARATION_MEMBER;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    59
};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    60
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    61
#endif
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    62
// RSPUDMANINTERFACE_H