aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llurlhistory.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llurlhistory.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llurlhistory.h (renamed from linden/indra/llmedia/llmediaobservers.h)52
1 files changed, 29 insertions, 23 deletions
diff --git a/linden/indra/llmedia/llmediaobservers.h b/linden/indra/newview/llurlhistory.h
index 09dd3b8..05d81b1 100644
--- a/linden/indra/llmedia/llmediaobservers.h
+++ b/linden/indra/newview/llurlhistory.h
@@ -1,10 +1,10 @@
1/** 1/**
2 * @file llmediaobservers.h 2 * @file llurlhistory.h
3 * @brief LLMedia support - observer classes to be overridden. 3 * @brief Manages a list of recent URLs
4 * 4 *
5 * $LicenseInfo:firstyear=2005&license=viewergpl$ 5 * $LicenseInfo:firstyear=2007&license=viewergpl$
6 * 6 *
7 * Copyright (c) 2005-2008, Linden Research, Inc. 7 * Copyright (c) 2007-2008, Linden Research, Inc.
8 * 8 *
9 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
10 * The source code in this file ("Source Code") is provided by Linden Lab 10 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -29,26 +29,32 @@
29 * $/LicenseInfo$ 29 * $/LicenseInfo$
30 */ 30 */
31 31
32// header guard 32#ifndef LLURLHISTORY_H
33#ifndef llmediaobservers_h 33#define LLURLHISTORY_H
34#define llmediaobservers_h
35 34
36#include "llmediaemitterevents.h" 35#include "llstring.h"
37 36
38class LLMediaObserver 37class LLSD;
38
39class LLURLHistory
39{ 40{
40 public: 41public:
41 typedef LLMediaEvent EventType; 42 // Loads an xml file of URLs. Currently only supports Parcel URL history
42 virtual ~LLMediaObserver() {} 43 static bool loadFile(const LLString& filename);
43 virtual void onInit ( const EventType& eventIn ) { } 44
44 virtual void onSetUrl ( const EventType& eventIn ) { } 45 // Saves the current history to XML
45 virtual void onLoad ( const EventType& eventIn ) { } 46 static bool saveFile(const LLString& filename);
46 virtual void onPlay ( const EventType& eventIn ) { } 47
47 virtual void onPause ( const EventType& eventIn ) { } 48 static LLSD getURLHistory(const std::string& collection);
48 virtual void onStop ( const EventType& eventIn ) { }
49 virtual void onUnload ( const EventType& eventIn ) { }
50 virtual void onPopupMessage ( const EventType& eventIn ) { }
51};
52 49
50 static void addURL(const std::string& collection, const std::string& url);
51 static void removeURL(const std::string& collection, const std::string& url);
52 static void clear(const std::string& collection);
53
54 static void limitSize(const std::string& collection);
55
56private:
57 static LLSD sHistorySD;
58};
53 59
54#endif // llmediaobservers_h 60#endif // LLURLHISTORY_H