equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Functions to notify Media Gallery of new files. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <f32file.h> |
|
21 #include <MCLFContentListingEngine.h> |
|
22 #include <ContentListingFactory.h> |
|
23 #include "upnpgallerynotifier.h" |
|
24 |
|
25 // CONSTANTS |
|
26 // none |
|
27 |
|
28 // ============================ LOCAL FUNCTIONS ============================= |
|
29 |
|
30 // -------------------------------------------------------------------------- |
|
31 // UpnpGalleryNotifier::NotifyMediaGalleryL(); |
|
32 // Notify CLF about the update in the file system (file added or |
|
33 // removed). |
|
34 //--------------------------------------------------------------------------- |
|
35 // |
|
36 EXPORT_C void UpnpGalleryNotifier::NotifyMediaGalleryL() |
|
37 { |
|
38 MCLFContentListingEngine* engine = |
|
39 ContentListingFactory::NewContentListingEngineLC(); |
|
40 |
|
41 // Do the nofity |
|
42 engine->UpdateItemsL(); |
|
43 |
|
44 CleanupStack::PopAndDestroy(); // Do not check pointer (M-class!) |
|
45 } |
|
46 |
|
47 // End of File |