~ubuntu-branches/ubuntu/gutsy/firefox/gutsy

« back to all changes in this revision

Viewing changes to mailnews/base/src/nsMsgTagService.h

  • Committer: Bazaar Package Importer
  • Author(s): Ian Jackson
  • Date: 2006-10-10 18:49:32 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20061010184932-da75izt7y0e59afq
Tags: 1.99+2.0rc2+dfsg-0ubuntu1
* New upstream version 2.0rc2.
* Fix/workaround for epiphany GtkSocket lifetype crash:
  apply patch id=241087 from Mozilla Bugzilla #241535 to fix LP #63814.
* Change application name to `Firefox', as requested by mdz.
  Files changed:
    - browser/locales/en-US/chrome/branding/brand.dtd
    - browser/locales/en-US/chrome/branding/brand.properties;
  New values:
    - brandShortName and brandFullName: `Bon Echo' => `Firefox'
    - vendorShortName: `Mozilla' => `Ubuntu'
* Make preferences dialogue fit again (bah!).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *
22
22
 * Contributor(s):
23
23
 *   David Bienvenu <bienvenu@mozilla.org>
 
24
 *   Karsten Düsterloh <mnyromyr@tprac.de>
24
25
 *
25
26
 * Alternatively, the contents of this file may be used under the terms of
26
27
 * either of the GNU General Public License Version 2 or later (the "GPL"),
42
43
#include "nsIMsgTagService.h"
43
44
#include "nsIPrefBranch.h"
44
45
 
45
 
class nsMsgTagEntry
 
46
 
 
47
class nsMsgTag : public nsIMsgTag
46
48
{
47
49
public:
48
 
  nsMsgTagEntry(const char *key, const PRUnichar *tag, PRUint32 color);
49
 
  nsString m_tag;
50
 
  nsCString m_key;
51
 
  PRUint32 m_color;
 
50
  NS_DECL_ISUPPORTS
 
51
  NS_DECL_NSIMSGTAG
 
52
 
 
53
  nsMsgTag(const nsACString &aKey,
 
54
           const nsAString  &aTag,
 
55
           const nsACString &aColor,
 
56
           const nsACString &aOrdinal);
 
57
  ~nsMsgTag();
 
58
 
 
59
protected:
 
60
  nsString  mTag;
 
61
  nsCString mKey, mColor, mOrdinal;
52
62
};
53
63
 
 
64
 
54
65
class nsMsgTagService : public nsIMsgTagService
55
66
{
56
67
public:
63
74
  ~nsMsgTagService();
64
75
 
65
76
protected:
66
 
  nsresult getPrefService() ;
67
77
  nsresult SetUnicharPref(const char *prefName,
68
 
                              const nsAString &prefValue);
 
78
                          const nsAString &prefValue);
69
79
  nsresult GetUnicharPref(const char *prefName,
70
 
                              nsAString &prefValue);
 
80
                          nsAString &prefValue);
71
81
  nsresult MigrateLabelsToTags();
72
82
 
73
 
  nsCOMPtr<nsIPrefBranch> m_prefBranch;
 
83
  nsCOMPtr<nsIPrefBranch> m_tagPrefBranch;
74
84
};
75
85
 
76
86
#endif