2 * Browser D-Bus Bridge, XPCOM version
4 * Copyright © 2008 Movial Creative Technologies Inc
5 * Contact: Movial Creative Technologies Inc, <info@movial.com>
6 * Authors: Lauri Mylläri, <lauri.myllari@movial.fi>
7 * Kalle Vahlman, <kalle.vahlman@movial.com>
9 * The contents of this file are subject to the Mozilla Public License
10 * Version 1.1 (the "License"); you may not use this file except in
11 * compliance with the License. You may obtain a copy of the License at
12 * http://www.mozilla.org/MPL/
14 * Software distributed under the License is distributed on an "AS IS"
15 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
16 * License for the specific language governing rights and limitations
19 * The Original Code is the Browser D-Bus Bridge, XPCOM version.
21 * The Initial Developer of the Original Code is Movial Creative Technologies
22 * Inc. Portions created by Initial Developer are Copyright (C) 2008
23 * Movial Creative Technologies Inc. All Rights Reserved.
28 #include <dbus/dbus.h>
30 #include "DBusDataCarrier.h"
32 #include "bdb-debug.h"
35 NS_IMPL_ISUPPORTS1(DBusDataCarrier, IDBusDataCarrier)
37 DBusDataCarrier::DBusDataCarrier() :
41 BDBLOG(("%s\n", __FUNCTION__));
44 DBusDataCarrier::~DBusDataCarrier()
46 BDBLOG(("%s\n", __FUNCTION__));
49 /* attribute ACString type; */
50 NS_IMETHODIMP DBusDataCarrier::GetType(nsACString & aType)
52 BDBLOG(("%s\n", __FUNCTION__));
56 NS_IMETHODIMP DBusDataCarrier::SetType(const nsACString & aType)
58 BDBLOG(("%s\n", __FUNCTION__));
63 /* attribute ACString signature; */
64 NS_IMETHODIMP DBusDataCarrier::GetSignature(nsACString & aSignature)
66 BDBLOG(("%s\n", __FUNCTION__));
67 aSignature.Assign(mSig);
70 NS_IMETHODIMP DBusDataCarrier::SetSignature(const nsACString & aSignature)
72 BDBLOG(("%s\n", __FUNCTION__));
73 mSig.Assign(aSignature);
77 /* attribute nsIVariant value; */
78 NS_IMETHODIMP DBusDataCarrier::GetValue(nsIVariant * *aValue)
80 BDBLOG(("%s\n", __FUNCTION__));
81 *aValue = mValue.get();
82 NS_IF_ADDREF(*aValue);
85 NS_IMETHODIMP DBusDataCarrier::SetValue(nsIVariant * aValue)
87 BDBLOG(("%s\n", __FUNCTION__));