blob: b26652e9316528ea2d023ca76ddee84bdc306444 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
#define CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
#include <vector>
#include "base/basictypes.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
// MTPDeviceObjectEntry contains the media transfer protocol device object
// property values that are obtained using
// IPortableDeviceProperties::GetValues().
struct MTPDeviceObjectEntry {
MTPDeviceObjectEntry(); // Necessary for STL.
MTPDeviceObjectEntry(const base::string16& object_id,
const base::string16& object_name,
bool is_directory,
int64 size,
const base::Time& last_modified_time);
// The object identifier obtained using IEnumPortableDeviceObjectIDs::Next(),
// e.g. "o299".
base::string16 object_id;
// Friendly name of the object, e.g. "IMG_9911.jpeg".
base::string16 name;
// True if the current object is a directory/folder/album content type.
bool is_directory;
// The object file size in bytes, e.g. "882992".
int64 size;
// Last modified time of the object.
base::Time last_modified_time;
};
typedef std::vector<MTPDeviceObjectEntry> MTPDeviceObjectEntries;
#endif // CHROME_BROWSER_MEDIA_GALLERIES_WIN_MTP_DEVICE_OBJECT_ENTRY_H_
|