zeroconf/cachemanager/src/cmdnsprobemanager.cpp
changeset 14 da856f45b798
equal deleted inserted replaced
12:78fbd574edf4 14:da856f45b798
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include "cmdnsprobemanager.h"
       
    21 
       
    22 CMDNSProbeManager* CMDNSProbeManager::NewL(RBuf& aHostName, TInetAddr aAddr)
       
    23 	{
       
    24 	CMDNSProbeManager* self = CMDNSProbeManager::NewLC(aHostName,aAddr);
       
    25 	CleanupStack::Pop(self);
       
    26 	return self;
       
    27 	}
       
    28 
       
    29 CMDNSProbeManager* CMDNSProbeManager::NewLC(RBuf& aHostName, TInetAddr aAddr)
       
    30 	{
       
    31 	CMDNSProbeManager* self = new (ELeave)CMDNSProbeManager(aHostName,aAddr);
       
    32 	CleanupStack::PushL(self);
       
    33 	self->ConstructL();
       
    34 	return self;
       
    35 	}
       
    36 
       
    37 CMDNSProbeManager::CMDNSProbeManager(RBuf& aHostName, TInetAddr aAddr):CTimer(CActive::EPriorityStandard)
       
    38 	{
       
    39 	
       
    40 	}
       
    41 
       
    42 
       
    43 CMDNSProbeManager* CMDNSProbeManager::NewL(RBuf& aServiceName,RBuf& aHostName)
       
    44 	{
       
    45 	CMDNSProbeManager* self = CMDNSProbeManager::NewLC(aServiceName,aHostName);
       
    46 	CleanupStack::Pop(self);
       
    47 	return self;
       
    48 	}
       
    49 
       
    50 CMDNSProbeManager* CMDNSProbeManager::NewLC(RBuf& aServiceName,RBuf& aHostName)
       
    51 	{
       
    52 	CMDNSProbeManager* self = new (ELeave)CMDNSProbeManager(aServiceName,aHostName);
       
    53 	CleanupStack::PushL(self);
       
    54 	self->ConstructL();
       
    55 	return self;
       
    56 	}
       
    57 
       
    58 CMDNSProbeManager::CMDNSProbeManager(RBuf& aServiceName,RBuf& aHostName):CTimer(CActive::EPriorityStandard)
       
    59 	{
       
    60 	
       
    61 	}
       
    62 void CMDNSProbeManager::ConstructL()
       
    63 	{
       
    64 	 
       
    65 	}
       
    66 
       
    67 CMDNSProbeManager::~CMDNSProbeManager()
       
    68 	{
       
    69 	
       
    70 	}
       
    71 
       
    72 void CMDNSProbeManager::RunL()
       
    73 	{
       
    74 	switch(iCurrentProbeState)
       
    75 		{
       
    76 		case EIdle:
       
    77 		break;
       
    78 		
       
    79 		case EProbeBegin:
       
    80 		break;
       
    81 		
       
    82 		case EProbeFirstUnicast:
       
    83 		break;
       
    84 		
       
    85 		case EProbeSecondUnicast:
       
    86 		break;
       
    87 		
       
    88 		case EProbeMulticast:
       
    89 		break;
       
    90 		
       
    91 		case EProbeComplete:
       
    92 		break;
       
    93 		
       
    94 		case EFirstAnnouncement:
       
    95 		break;
       
    96 		
       
    97 		case ESecondAnnouncement:
       
    98 		break;
       
    99 		
       
   100 		}
       
   101 	}
       
   102 
       
   103 TInt CMDNSProbeManager::RunError(TInt aError)
       
   104 	{
       
   105 	return KErrNone;
       
   106 	}