Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / netwerk / streamconv / converters / nsDirIndex.cpp
blobfefe5e1863d7a7f13d56ea2b04cc19acea1dd9eb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "nsDirIndex.h"
8 NS_IMPL_ISUPPORTS(nsDirIndex, nsIDirIndex)
10 NS_IMETHODIMP
11 nsDirIndex::GetType(uint32_t* aType) {
12 NS_ENSURE_ARG_POINTER(aType);
14 *aType = mType;
15 return NS_OK;
18 NS_IMETHODIMP
19 nsDirIndex::SetType(uint32_t aType) {
20 mType = aType;
21 return NS_OK;
24 NS_IMETHODIMP
25 nsDirIndex::GetLocation(nsACString& aLocation) {
26 aLocation = mLocation;
27 return NS_OK;
30 NS_IMETHODIMP
31 nsDirIndex::SetLocation(const nsACString& aLocation) {
32 mLocation = aLocation;
33 return NS_OK;
36 NS_IMETHODIMP
37 nsDirIndex::GetSize(int64_t* aSize) {
38 NS_ENSURE_ARG_POINTER(aSize);
40 *aSize = mSize;
41 return NS_OK;
44 NS_IMETHODIMP
45 nsDirIndex::SetSize(int64_t aSize) {
46 mSize = aSize;
47 return NS_OK;
50 NS_IMETHODIMP
51 nsDirIndex::GetLastModified(PRTime* aLastModified) {
52 NS_ENSURE_ARG_POINTER(aLastModified);
54 *aLastModified = mLastModified;
55 return NS_OK;
58 NS_IMETHODIMP
59 nsDirIndex::SetLastModified(PRTime aLastModified) {
60 mLastModified = aLastModified;
61 return NS_OK;