First public contribution.
1 // Copyright (c) 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 the License "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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // f32test\server\t_notifier_caps.cpp
24 const TInt KNotificationHeaderSize = (sizeof(TUint16)*2)+(sizeof(TUint));
25 const TInt KMinNotificationBufferSize = 2*KNotificationHeaderSize + 2*KMaxFileName;
31 CTrapCleanup* cleanup;
32 cleanup = CTrapCleanup::New();
37 CFsNotify* notify = NULL;
38 TRAP(r, notify = CFsNotify::NewL(fs,KMinNotificationBufferSize));
39 User::LeaveIfError(r);
41 TChar systemChar = fs.GetSystemDriveChar();
43 path.Append(systemChar);
44 path.Append(_L(":\\PRIVATE\\01234567\\"));
47 filename.Append(_L("file.txt"));
49 r = notify->AddNotification((TUint)TFsNotification::ECreate,path,filename);