blob: 36319c4253aa2d73ec5913a32c94b7da928aa760 (
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
|
// Copyright (c) 2012 The Chromium OS 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 MTPD_DAEMON_H_
#define MTPD_DAEMON_H_
#include <base/basictypes.h>
#include "mtpd_server_impl.h"
namespace mtpd {
class Daemon {
public:
explicit Daemon(DBus::Connection* dbus_connection);
~Daemon();
// Returns a file descriptor for monitoring device events.
int GetDeviceEventDescriptor() const;
// Processes the available device events.
void ProcessDeviceEvents();
private:
MtpdServer server_;
DISALLOW_COPY_AND_ASSIGN(Daemon);
};
} // namespace mtpd
#endif // MTPD_DAEMON_H_
|