sdkcreationmw/sdkruntimes/AsyStub/src/AsyStubMainServiceBase.cpp
author Shabe Razvi <shaber@symbian.org>
Thu, 04 Nov 2010 17:22:05 +0000
changeset 4 b3b823debf08
parent 0 b26acd06ea60
permissions -rw-r--r--
Workaround for Bug 3917 - CWinsockInterface::DataSent calls NotifyDataSent which is not implemented.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
/*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
* All rights reserved.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
* This component and the accompanying materials are made available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
* Description: 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
#include "ASYStubMainServiceBase.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
#include "AsyStubObserver.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
#ifndef EKA2
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
GLDEF_C TInt E32Dll( TDllReason )
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
    return KErrNone;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
#endif
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
// CASYStubMainServiceBase::CASYStubMainServiceBase()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
//  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
CASYStubMainServiceBase::CASYStubMainServiceBase()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
	{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
	}
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
// CASYStubMainServiceBase::NewL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
CASYStubMainServiceBase* CASYStubMainServiceBase::NewL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
	{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
	return new ( ELeave ) CASYStubMainServiceBase();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
	}
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
// CASYStubMainServiceBase::~CASYStubMainServiceBase()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
CASYStubMainServiceBase::~CASYStubMainServiceBase()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
	{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
	}
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
// CASYStubMainServiceBase::StartL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
TInt CASYStubMainServiceBase::StartL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
        iService = new ( ELeave ) CASYStubService(); 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
        CleanupStack::PushL( iService );
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
        iService->ConstructL(); 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    66
        CleanupStack::Pop(); 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    67
        CASYStubObserver* subscribeObserver = CASYStubObserver::NewL(*iService);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    68
        subscribeObserver->IssueRequest();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    69
        this->Signal();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    70
        return KErrNone;
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    71
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    72
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    73
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    74
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    75
// CASYStubMainServiceBase::AsyStubMainServicePointerReceivedL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    76
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    77
void CASYStubMainServiceBase::AsyStubMainServicePointerReceivedL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    78
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    79
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    80
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    81
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    82
//
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    83
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    84
// CASYStubMainServiceBase::GetAndRemoveCapability()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    85
// ----------------------------------------------------------------------------------
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    86
TTFCapability CASYStubMainServiceBase::GetAndRemoveCapability()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    87
    {
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    88
        return iService->GetAndRemoveCapability();
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    89
    }
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    90
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    91
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    92
 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    93
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    94