mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:32:44 +00:00 
			
		
		
		
	LibGUI: Rename NotificationServerConnection
Rename NotificationServerConnection=>ConnectionToNotificationServer. This was done with CLion's automatic rename feature.
This commit is contained in:
		
							parent
							
								
									493f604dba
								
							
						
					
					
						commit
						2bc8e32af0
					
				
					 2 changed files with 7 additions and 7 deletions
				
			
		|  | @ -11,10 +11,10 @@ | ||||||
| 
 | 
 | ||||||
| namespace GUI { | namespace GUI { | ||||||
| 
 | 
 | ||||||
| class NotificationServerConnection final | class ConnectionToNotificationServer final | ||||||
|     : public IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint> |     : public IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint> | ||||||
|     , public NotificationClientEndpoint { |     , public NotificationClientEndpoint { | ||||||
|     IPC_CLIENT_CONNECTION(NotificationServerConnection, "/tmp/portal/notify") |     IPC_CLIENT_CONNECTION(ConnectionToNotificationServer, "/tmp/portal/notify") | ||||||
| 
 | 
 | ||||||
|     friend class Notification; |     friend class Notification; | ||||||
| 
 | 
 | ||||||
|  | @ -25,7 +25,7 @@ public: | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| private: | private: | ||||||
|     explicit NotificationServerConnection(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Notification* notification) |     explicit ConnectionToNotificationServer(NonnullOwnPtr<Core::Stream::LocalSocket> socket, Notification* notification) | ||||||
|         : IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint>(*this, move(socket)) |         : IPC::ConnectionToServer<NotificationClientEndpoint, NotificationServerEndpoint>(*this, move(socket)) | ||||||
|         , m_notification(notification) |         , m_notification(notification) | ||||||
|     { |     { | ||||||
|  | @ -45,7 +45,7 @@ void Notification::show() | ||||||
| { | { | ||||||
|     VERIFY(!m_shown && !m_destroyed); |     VERIFY(!m_shown && !m_destroyed); | ||||||
|     auto icon = m_icon ? m_icon->to_shareable_bitmap() : Gfx::ShareableBitmap(); |     auto icon = m_icon ? m_icon->to_shareable_bitmap() : Gfx::ShareableBitmap(); | ||||||
|     m_connection = NotificationServerConnection::try_create(this).release_value_but_fixme_should_propagate_errors(); |     m_connection = ConnectionToNotificationServer::try_create(this).release_value_but_fixme_should_propagate_errors(); | ||||||
|     m_connection->show_notification(m_text, m_title, icon); |     m_connection->show_notification(m_text, m_title, icon); | ||||||
|     m_shown = true; |     m_shown = true; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -11,12 +11,12 @@ | ||||||
| 
 | 
 | ||||||
| namespace GUI { | namespace GUI { | ||||||
| 
 | 
 | ||||||
| class NotificationServerConnection; | class ConnectionToNotificationServer; | ||||||
| 
 | 
 | ||||||
| class Notification : public Core::Object { | class Notification : public Core::Object { | ||||||
|     C_OBJECT(Notification); |     C_OBJECT(Notification); | ||||||
| 
 | 
 | ||||||
|     friend class NotificationServerConnection; |     friend class ConnectionToNotificationServer; | ||||||
| 
 | 
 | ||||||
| public: | public: | ||||||
|     virtual ~Notification() override; |     virtual ~Notification() override; | ||||||
|  | @ -62,7 +62,7 @@ private: | ||||||
| 
 | 
 | ||||||
|     bool m_destroyed { false }; |     bool m_destroyed { false }; | ||||||
|     bool m_shown { false }; |     bool m_shown { false }; | ||||||
|     RefPtr<NotificationServerConnection> m_connection; |     RefPtr<ConnectionToNotificationServer> m_connection; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Itamar
						Itamar