Changeset View
Changeset View
Standalone View
Standalone View
src/server/output_interface.cpp
Show First 20 Lines • Show All 500 Lines • ▼ Show 20 Line(s) | |||||
501 | } | 501 | } | ||
502 | 502 | | |||
503 | bool OutputInterface::isDpmsSupported() const | 503 | bool OutputInterface::isDpmsSupported() const | ||
504 | { | 504 | { | ||
505 | Q_D(); | 505 | Q_D(); | ||
506 | return d->dpms.supported; | 506 | return d->dpms.supported; | ||
507 | } | 507 | } | ||
508 | 508 | | |||
509 | QVector<wl_resource *> OutputInterface::clientResources(ClientConnection *client) const | ||||
510 | { | ||||
511 | Q_D(); | ||||
512 | QVector<wl_resource *> ret; | ||||
513 | for (auto it = d->resources.constBegin(), end = d->resources.constEnd(); it != end; ++it) { | ||||
514 | if (wl_resource_get_client((*it).resource) == client->client()) { | ||||
515 | ret << (*it).resource; | ||||
516 | } | ||||
517 | } | ||||
518 | return ret; | ||||
519 | } | ||||
520 | | ||||
509 | OutputInterface *OutputInterface::get(wl_resource* native) | 521 | OutputInterface *OutputInterface::get(wl_resource* native) | ||
510 | { | 522 | { | ||
511 | return Private::get(native); | 523 | return Private::get(native); | ||
512 | } | 524 | } | ||
513 | 525 | | |||
514 | OutputInterface::Private *OutputInterface::d_func() const | 526 | OutputInterface::Private *OutputInterface::d_func() const | ||
515 | { | 527 | { | ||
516 | return reinterpret_cast<Private*>(d.data()); | 528 | return reinterpret_cast<Private*>(d.data()); | ||
517 | } | 529 | } | ||
518 | 530 | | |||
519 | } | 531 | } | ||
520 | } | 532 | } |