imagingandcamerafws/imaginginttest/inc/ICLFbsSessionTest.inl
branchRCL_3
changeset 50 948c7f65f6d4
parent 0 40261b775718
child 41 f7bf1ed8db72
equal deleted inserted replaced
49:735348f59235 50:948c7f65f6d4
       
     1 // Copyright (c) 2004-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 #ifndef __ICLFbsSessionTest_inl
       
    17 #define __ICLFbsSessionTest_inl
       
    18 
       
    19 
       
    20 
       
    21 /*
       
    22  * Default Constructor	
       
    23  */
       
    24 inline CICLFbsSessionTest::CICLFbsSessionTest()
       
    25 	{ 
       
    26 	}
       
    27 
       
    28 
       
    29 /*
       
    30  * Default Destructor	
       
    31  */
       
    32 inline CICLFbsSessionTest::~CICLFbsSessionTest()
       
    33 	{ 
       
    34 	RFbsSession::Disconnect(); 
       
    35 	}
       
    36 
       
    37 /*
       
    38  * Makes an actual Connection to RFbsSession
       
    39  *
       
    40  */	
       
    41 inline void CICLFbsSessionTest::ConnectToSessionL()
       
    42 	{ 
       
    43 	User::LeaveIfError(RFbsSession::Connect()); 
       
    44 	}		
       
    45 
       
    46 /* 
       
    47  * Constructs the object and pushes it on the CleanUpStack
       
    48  * 
       
    49  * NewLC()
       
    50  *
       
    51  * @return Returns Pointer Of Type CICLFbsSessionTest
       
    52  * 
       
    53  */
       
    54 inline CICLFbsSessionTest* CICLFbsSessionTest::NewLC()
       
    55 	{
       
    56 	CICLFbsSessionTest* self = new (ELeave) CICLFbsSessionTest;
       
    57     CleanupStack::PushL(self);
       
    58     self->ConnectToSessionL();
       
    59     return self;
       
    60 	}
       
    61 
       
    62 #endif