|
1 /* |
|
2 * Copyright (c) 2006 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: Common declarations |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPX_HARVESTER_COMMON_H |
|
19 #define MPX_HARVESTER_COMMON_H |
|
20 |
|
21 // Constants |
|
22 const TInt KBatchCommit = 100; // # changes to DB before commit. |
|
23 |
|
24 |
|
25 // Supported server ops |
|
26 enum TMPXHarvesterServerOp |
|
27 { |
|
28 EHvsServerGetBuffer, // Get the current buffer stored in the session |
|
29 EHvsServerScan, // Initiate a scan of the FS |
|
30 EHvsServerCancelScan, // Cancel a scan |
|
31 EHvsServerShutdown, // Shutdown the server |
|
32 EHvsServerAddFile, // Add an item to the harvester db |
|
33 EHvsServerAddFileMedia, // Add an item based on a media |
|
34 EHvsServerRemoveFile, // Remove an item from harvester db |
|
35 EHvsServerRemoveFiles, // Remove multiple items from the harvester db |
|
36 EHvsServerRemoveAllFiles, // Remove all songs from harvester db |
|
37 EHvsServerUpdateFile, // Update a file with new time stamp and collection |
|
38 EHvsServerRenameFile, // Rename a file |
|
39 EHvsServerExportPlaylist, // Export a playlist |
|
40 EHvsServerImportPlaylist, // Import a playlist |
|
41 EHvsServerFindColID, // Find the collection ID for an item |
|
42 EHvsServerReqAttr, // Query the required attributes for tracks for a playlist type |
|
43 EHvsServerOptAttr, // Query the optional attributes for tracks for a playlist type |
|
44 EHvsServerPlaylistFileExt,// Get file extension of a playlist plugin |
|
45 EHvsServerIsPlaylist, // Test if a file is a playlist |
|
46 EHvsServerImportFile, // Import a "file" |
|
47 EHvsServerReCreateDB, // Delete the old databases and re-create from fresh |
|
48 EHvsServerCheckSystemEvent, // Check for system events and broadcast if any are active |
|
49 EHvsServerGetMedia, // Get a media for the file |
|
50 EHvsServerGetColUid, // Get a collection id for the file |
|
51 EHvsServerCloseTransaction, // Close the database transaction |
|
52 EHvsServerOpCount |
|
53 }; |
|
54 |
|
55 // System events |
|
56 enum TSystemEvent |
|
57 { |
|
58 // This should be a 1:1 mapping to TMPXCollectionBroadCastMsg events |
|
59 // for easy conversion |
|
60 // check mpxcollectionframeworkdefs.h |
|
61 // |
|
62 EFormatStartEvent, // Start of a formatting event |
|
63 EFormatEndEvent, // End of a formatting event |
|
64 EDiskRemovedEvent, // Disk removed event |
|
65 EDiskInsertedEvent, // Disk Inserted event |
|
66 EUSBMassStorageStartEvent, // USB Mass storage started event |
|
67 EUSBMassStorageEndEvent, // USB Mass storage ended event |
|
68 EUSBMTPStartEvent, // MTP start event |
|
69 EUSBMTPEndEvent, // MTP end event |
|
70 EUSBMTPNotActiveEvent, // MTP selected but not active |
|
71 ESystemEventMax, // End of event enum |
|
72 EPowerKeyEjectEvent // Power key eject mmc |
|
73 }; |
|
74 |
|
75 #endif // MPX_HARVESTER_COMMON_H |
|
76 |