Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
10d50d44
Commit
10d50d44
authored
10 years ago
by
Nat Goodspeed
Browse files
Options
Downloads
Plain Diff
Automated merge with
http://hg.secondlife.com/viewer-release
parents
c71e459b
220b4166
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
indra/llui/llnotifications.cpp
+1
-0
1 addition, 0 deletions
indra/llui/llnotifications.cpp
indra/llui/llnotifications.h
+7
-1
7 additions, 1 deletion
indra/llui/llnotifications.h
indra/llui/llnotificationslistener.cpp
+14
-13
14 additions, 13 deletions
indra/llui/llnotificationslistener.cpp
with
22 additions
and
14 deletions
indra/llui/llnotifications.cpp
+
1
−
0
View file @
10d50d44
...
@@ -1189,6 +1189,7 @@ void LLNotificationChannel::connectToChannel( const std::string& channel_name )
...
@@ -1189,6 +1189,7 @@ void LLNotificationChannel::connectToChannel( const std::string& channel_name )
}
}
else
else
{
{
mParents
.
push_back
(
channel_name
);
LLNotificationChannelPtr
p
=
LLNotifications
::
instance
().
getChannel
(
channel_name
);
LLNotificationChannelPtr
p
=
LLNotifications
::
instance
().
getChannel
(
channel_name
);
p
->
connectChanged
(
boost
::
bind
(
&
LLNotificationChannelBase
::
updateItem
,
this
,
_1
));
p
->
connectChanged
(
boost
::
bind
(
&
LLNotificationChannelBase
::
updateItem
,
this
,
_1
));
}
}
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llnotifications.h
+
7
−
1
View file @
10d50d44
...
@@ -88,6 +88,7 @@
...
@@ -88,6 +88,7 @@
#include
<boost/enable_shared_from_this.hpp>
#include
<boost/enable_shared_from_this.hpp>
#include
<boost/type_traits.hpp>
#include
<boost/type_traits.hpp>
#include
<boost/signals2.hpp>
#include
<boost/signals2.hpp>
#include
<boost/range.hpp>
#include
"llevents.h"
#include
"llevents.h"
#include
"llfunctorregistry.h"
#include
"llfunctorregistry.h"
...
@@ -839,6 +840,11 @@ class LLNotificationChannel :
...
@@ -839,6 +840,11 @@ class LLNotificationChannel :
typedef
LLNotificationSet
::
iterator
Iterator
;
typedef
LLNotificationSet
::
iterator
Iterator
;
std
::
string
getName
()
const
{
return
mName
;
}
std
::
string
getName
()
const
{
return
mName
;
}
typedef
std
::
vector
<
std
::
string
>::
const_iterator
parents_iter
;
boost
::
iterator_range
<
parents_iter
>
getParents
()
const
{
return
boost
::
iterator_range
<
parents_iter
>
(
mParents
);
}
void
connectToChannel
(
const
std
::
string
&
channel_name
);
void
connectToChannel
(
const
std
::
string
&
channel_name
);
...
@@ -853,7 +859,7 @@ class LLNotificationChannel :
...
@@ -853,7 +859,7 @@ class LLNotificationChannel :
private
:
private
:
std
::
string
mName
;
std
::
string
mName
;
std
::
string
mParent
;
std
::
vector
<
std
::
string
>
mParent
s
;
};
};
// An interface class to provide a clean linker seam to the LLNotifications class.
// An interface class to provide a clean linker seam to the LLNotifications class.
...
...
This diff is collapsed.
Click to expand it.
indra/llui/llnotificationslistener.cpp
+
14
−
13
View file @
10d50d44
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#include
"llnotificationtemplate.h"
#include
"llnotificationtemplate.h"
#include
"llsd.h"
#include
"llsd.h"
#include
"llui.h"
#include
"llui.h"
#include
<boost/foreach.hpp>
LLNotificationsListener
::
LLNotificationsListener
(
LLNotifications
&
notifications
)
:
LLNotificationsListener
::
LLNotificationsListener
(
LLNotifications
&
notifications
)
:
LLEventAPI
(
"LLNotifications"
,
LLEventAPI
(
"LLNotifications"
,
...
@@ -42,11 +43,10 @@ LLNotificationsListener::LLNotificationsListener(LLNotifications & notifications
...
@@ -42,11 +43,10 @@ LLNotificationsListener::LLNotificationsListener(LLNotifications & notifications
"Add a notification with specified [
\"
name
\"
], [
\"
substitutions
\"
] and [
\"
payload
\"
].
\n
"
"Add a notification with specified [
\"
name
\"
], [
\"
substitutions
\"
] and [
\"
payload
\"
].
\n
"
"If optional [
\"
reply
\"
] specified, arrange to send user response on that LLEventPump."
,
"If optional [
\"
reply
\"
] specified, arrange to send user response on that LLEventPump."
,
&
LLNotificationsListener
::
requestAdd
);
&
LLNotificationsListener
::
requestAdd
);
/*
add("listChannels",
add
(
"listChannels"
,
"Post to [
\"
reply
\"
] a map of info on existing channels"
,
"Post to [
\"
reply
\"
] a map of info on existing channels"
,
&
LLNotificationsListener
::
listChannels
,
&
LLNotificationsListener
::
listChannels
,
LLSD
().
with
(
"reply"
,
LLSD
()));
LLSD
().
with
(
"reply"
,
LLSD
()));
*/
add
(
"listChannelNotifications"
,
add
(
"listChannelNotifications"
,
"Post to [
\"
reply
\"
] an array of info on notifications in channel [
\"
channel
\"
]"
,
"Post to [
\"
reply
\"
] an array of info on notifications in channel [
\"
channel
\"
]"
,
&
LLNotificationsListener
::
listChannelNotifications
,
&
LLNotificationsListener
::
listChannelNotifications
,
...
@@ -117,26 +117,27 @@ void LLNotificationsListener::NotificationResponder(const std::string& reply_pum
...
@@ -117,26 +117,27 @@ void LLNotificationsListener::NotificationResponder(const std::string& reply_pum
reponse_event
[
"response"
]
=
response
;
reponse_event
[
"response"
]
=
response
;
LLEventPumps
::
getInstance
()
->
obtain
(
reply_pump
).
post
(
reponse_event
);
LLEventPumps
::
getInstance
()
->
obtain
(
reply_pump
).
post
(
reponse_event
);
}
}
/*
void
LLNotificationsListener
::
listChannels
(
const
LLSD
&
params
)
const
void
LLNotificationsListener
::
listChannels
(
const
LLSD
&
params
)
const
{
{
LLReqID
reqID
(
params
);
LLReqID
reqID
(
params
);
LLSD
response
(
reqID
.
makeResponse
());
LLSD
response
(
reqID
.
makeResponse
());
for (LLNotifications::
for
(
LLNotificationChannel
::
instance_iter
cmi
(
LLNotificationChannel
::
beginInstances
()),
cmend
(
LLNotificationChannel
::
endInstances
());
for (LLNotifications::ChannelMap::const_iterator cmi(mNotifications.mChannels.begin()),
cmend(mNotifications.mChannels.end());
cmi
!=
cmend
;
++
cmi
)
cmi
!=
cmend
;
++
cmi
)
{
{
LLSD channelInfo;
LLSD
channelInfo
,
parents
;
channelInfo["parent"] = cmi->second->getParentChannelName();
BOOST_FOREACH
(
const
std
::
string
&
parent
,
cmi
->
getParents
())
response[cmi->first] = channelInfo;
{
parents
.
append
(
parent
);
}
channelInfo
[
"parents"
]
=
parents
;
channelInfo
[
"parent"
]
=
parents
.
size
()
?
parents
[
0
]
:
""
;
response
[
cmi
->
getName
()]
=
channelInfo
;
}
}
LLEventPumps
::
instance
().
obtain
(
params
[
"reply"
]).
post
(
response
);
LLEventPumps
::
instance
().
obtain
(
params
[
"reply"
]).
post
(
response
);
}
}
*/
void
LLNotificationsListener
::
listChannelNotifications
(
const
LLSD
&
params
)
const
void
LLNotificationsListener
::
listChannelNotifications
(
const
LLSD
&
params
)
const
{
{
LLReqID
reqID
(
params
);
LLReqID
reqID
(
params
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment