examples/Base/FileServer/BasicSession/BasicSession.cpp

00001 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 // This example opens the file server session, and prints 
00015 // "Hello File Server!" to the console.
00016 // Used as the basis of all F32 examples
00017 // Note that no data is written.
00018 //
00019 
00020 #include "CommonFramework.h"
00021 #include <f32file.h>
00022         
00023 
00024 static RFs fsSession;
00025 
00026 // start of real example
00027 
00028 static void doExampleL()
00029     {
00030         // open file server session
00031         User::LeaveIfError(fsSession.Connect()); // connect session
00032         // say hello
00033         _LIT(KGreeting,"Hello File Server!\n");
00034         console->Printf(KGreeting);
00035         fsSession.Close(); // close file server session
00036         }

Generated by  doxygen 1.6.2