sdkcreationmw/sdkruntimes/wsock/src/WinsockAgentFactory.cpp
author rajpuroh
Wed, 21 Apr 2010 09:56:53 +0530
changeset 1 ac50fd48361b
parent 0 b26acd06ea60
permissions -rw-r--r--
Second Contribution
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) 2004-2005 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
* which accompanies this distribution, and is available
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
* Initial Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
* Nokia Corporation - initial contribution.
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
* Contributors:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
*
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
*/
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
#define TRACE_PREFIX "WSOCK: AgentFactory: "
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
#include "wsock.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
#include "WinsockAgent.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
#include "WinsockAgentFactory.h"
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
CWinsockAgentFactory::CWinsockAgentFactory()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
}
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
CWinsockAgentFactory::~CWinsockAgentFactory()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
}
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
// CNifAgentFactory
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
CNifAgentBase * CWinsockAgentFactory::NewAgentL(const TDesC& /*aName*/)
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
    return CWinsockAgent::NewL();
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
TInt CWinsockAgentFactory::Info(TNifAgentInfo& /*aInfo*/,
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
                                TInt DEBUG_ONLY(aIndex)) const
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
    TRACE1("Info(%d)",aIndex);
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
    return KErrNotFound;
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
// CNifFactory
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
void CWinsockAgentFactory::InstallL()
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
{
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
    TRACE("Install()");
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
}