libzypp 17.37.10

userinterface.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9
10#include "private/userinterface_p.h"
11#include <zypp-core/zyppng/ui/UserRequest>
12
13 namespace zyppng {
14
15 ZYPP_IMPL_PRIVATE(UserInterface)
16
17 ZYPP_IMPL_PRIVATE_CONSTR( UserInterface ) : Base ( *( new UserInterfacePrivate(*this) ) ) { }
18
19 UserInterface::UserInterface( UserInterfacePrivate &d ) : Base(d)
20 { }
21
22 void UserInterface::sendUserRequest(const UserRequestRef& event)
23 {
24 Z_D();
25 d->_sigEvent.emit( event );
26 }
27
28 SignalProxy<void (UserRequestRef)> UserInterface::sigEvent()
29 {
30 return d_func()->_sigEvent;
31 }
32}
zyppng::Base
Definition base.h:60
zyppng::Base::Base
Base()
Definition base.cc:20
zyppng::SignalProxy
Definition signals.h:325
zyppng::UserInterfacePrivate
Definition userinterface_p.h:11
zyppng::UserInterface
Definition userinterface.h:33
zyppng::UserInterface::sigEvent
SignalProxy< void(UserRequestRef event)> sigEvent()
Definition userinterface.cc:28
zyppng::UserInterface::sendUserRequest
void sendUserRequest(const UserRequestRef &event)
Definition userinterface.cc:22
zyppng::UserInterface::UserInterface
UserInterface(UserInterfacePrivate &d)
Definition userinterface.cc:19
zyppng
Definition MediaNetworkRequestExecutor.h:16
zyppng::ZYPP_IMPL_PRIVATE_CONSTR
ZYPP_IMPL_PRIVATE_CONSTR(Context)
Definition context.cc:19
userinterface_p.h
ZYPP_IMPL_PRIVATE
#define ZYPP_IMPL_PRIVATE(Class)
Definition zyppglobal.h:92
Z_D
#define Z_D()
Definition zyppglobal.h:105