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
)
11 nsDirIndex::GetType(uint32_t* aType
) {
12 NS_ENSURE_ARG_POINTER(aType
);
19 nsDirIndex::SetType(uint32_t aType
) {
25 nsDirIndex::GetLocation(nsACString
& aLocation
) {
26 aLocation
= mLocation
;
31 nsDirIndex::SetLocation(const nsACString
& aLocation
) {
32 mLocation
= aLocation
;
37 nsDirIndex::GetSize(int64_t* aSize
) {
38 NS_ENSURE_ARG_POINTER(aSize
);
45 nsDirIndex::SetSize(int64_t aSize
) {
51 nsDirIndex::GetLastModified(PRTime
* aLastModified
) {
52 NS_ENSURE_ARG_POINTER(aLastModified
);
54 *aLastModified
= mLastModified
;
59 nsDirIndex::SetLastModified(PRTime aLastModified
) {
60 mLastModified
= aLastModified
;