24
|
1 |
// Copyright (c) 1997-2009 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 |
@internalAll
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef __MSMSCSCA_H__
|
|
22 |
#define __MSMSCSCA_H__
|
|
23 |
|
|
24 |
#include "smsbase.H"
|
|
25 |
#include "mmlist.h"
|
|
26 |
|
|
27 |
class CATSmsGetSCAddress : public CATSmsCommands
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
struct TTsySmsp
|
|
31 |
{
|
|
32 |
TInt* iBufSize; // Size of the streamed SMSP list, in bytes.
|
|
33 |
CBufBase** iBufPtr; // Streamd SMSP list
|
|
34 |
};
|
|
35 |
|
|
36 |
static CATSmsGetSCAddress* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit,CPhoneGlobals* aGlobals);
|
|
37 |
|
|
38 |
protected:
|
|
39 |
// Framework stuff from CATBase...
|
|
40 |
virtual void EventSignal(TEventSource aSource);
|
|
41 |
virtual void CompleteWithIOError(TEventSource aSource, TInt aStatus);
|
|
42 |
void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams);
|
|
43 |
void Stop(TTsyReqHandle aTsyReqHandle);
|
|
44 |
void Complete(TInt aError);
|
|
45 |
virtual void Complete(TInt aError, TEventSource aSource);
|
|
46 |
|
|
47 |
private:
|
|
48 |
// Constructor
|
|
49 |
CATSmsGetSCAddress(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit,CPhoneGlobals* aGlobals);
|
|
50 |
|
|
51 |
// Utility functions
|
|
52 |
void CreateSmspListL();
|
|
53 |
|
|
54 |
private:
|
|
55 |
// Pointer to data passed down by client (this is how we report the back SCA to the client)
|
|
56 |
// We do not own this data.
|
|
57 |
RMobilePhone::TMobileAddress iSCAddress;
|
|
58 |
TTsySmsp iSmspInfo;
|
|
59 |
};
|
|
60 |
|
|
61 |
#endif
|